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 machine restart policy doc #1043

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Add machine restart policy doc #1043

merged 2 commits into from
Sep 21, 2023

Conversation

andie787
Copy link
Contributor

@andie787 andie787 commented Sep 19, 2023

Summary of changes

  • Added a doc to the Machines section about Machine restart policies
  • Added some examples

Related GitHub issues and community posts

Source info: https://community.fly.io/t/issues-with-machines-restart-policy/11943/25?u=andie

Notes (optional)

n/a


## Change a Machine's restart policy with the Machines API

With the Machines API, you can set the restart policy, and the maximum number of retries when the policy is `on-fail`.
Copy link
Contributor Author

@andie787 andie787 Sep 20, 2023

Choose a reason for hiding this comment

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

Is on-fail an alias for on-failure. Might be better if the API and flyctl match?

Copy link
Contributor

Choose a reason for hiding this comment

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

on-failure mimics Docker's naming which was the goal, if the CLI is using something different, we should change it.

@andie787 andie787 merged commit cda45c4 into main Sep 21, 2023
2 checks passed
@catflydotio catflydotio deleted the restart-policy branch October 26, 2023 15:29
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.

3 participants