Skip to content

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
@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