Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker daemon reconnect in the Docker agent #1918

Merged
merged 5 commits into from
Jan 16, 2020
Merged

Conversation

wagoodman
Copy link

Thanks for contributing to Prefect!

Please describe your work and make sure your PR:

  • adds new tests (if appropriate)
  • updates CHANGELOG.md (if appropriate)
  • updates docstrings for any new functions or function arguments, including docs/outline.toml for API reference docs (if appropriate)

Note that your PR will not be reviewed unless all three boxes are checked.

What does this PR change?

Modifies the docker agent to ping the docker daemon on heartbeat. After 3 failed reattempts, the agent will exit.

Closes #1916

Why is this PR important?

This will stabilize the Docker agent further when there is intermittent connections or if the Docker daemon is restarted.

@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #1918 into master will increase coverage by 0.03%.
The diff coverage is 33.33%.

joshmeek
joshmeek previously approved these changes Jan 15, 2020
Copy link

@joshmeek joshmeek left a comment

Choose a reason for hiding this comment

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

Tested locally, reconnection worked great 👍

@cicdw cicdw merged commit 6dea8b8 into master Jan 16, 2020
@cicdw cicdw deleted the docker-agent-reconnect branch January 16, 2020 20:23
wagoodman pushed a commit that referenced this pull request Jan 16, 2020
joshmeek added a commit that referenced this pull request Jan 16, 2020
@wagoodman wagoodman added this to the 0.9.1 milestone Jan 17, 2020
zanieb pushed a commit that referenced this pull request Jun 7, 2022
Rename flow run alerts to flow run notifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconnect Docker Agent on daemon restart
3 participants