Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Retry redis docker #3265

Merged
merged 2 commits into from Nov 6, 2018
Merged

Retry redis docker #3265

merged 2 commits into from Nov 6, 2018

Conversation

BrennanConroy
Copy link
Member

Fixes #3256

cc @muratg Test only 2.2 change

}
catch (Exception ex)
{
logger.LogError(ex, "Error starting redis docker container, retrying.");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be a possible infinite loop?

Do we want a counter and give up after N retries?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only calls Run twice, no looping

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's not recursive, it just looks kinda like it is because of the local func ;).

Add a delay? Just a second or two.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synchronous delay :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, then don't :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually yeah, leave it in. It's OK here

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool yeah re-reading I see it now. :)

}
catch (Exception ex)
{
logger.LogError(ex, "Error starting redis docker container, retrying.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's not recursive, it just looks kinda like it is because of the local func ;).

Add a delay? Just a second or two.

}
catch (Exception ex)
{
logger.LogError(ex, "Error starting redis docker container, retrying.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, then don't :(

@BrennanConroy BrennanConroy merged commit 56f78b4 into release/2.2 Nov 6, 2018
@BrennanConroy BrennanConroy deleted the brecon/redisRetry branch November 6, 2018 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants