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

[discussion] retry internet-depending states #145

Open
noelmcloughlin opened this issue Jun 24, 2019 · 2 comments
Open

[discussion] retry internet-depending states #145

noelmcloughlin opened this issue Jun 24, 2019 · 2 comments

Comments

@noelmcloughlin
Copy link
Member

For internet dependent states we could add retrys support per https://docs.saltstack.com/en/latest/ref/states/requisites.html#retrying-states

This could be a macro (See #134)

Example: saltstack-formulas/packages-formula#55

@myii
Copy link
Member

myii commented Jun 25, 2019

Something to consider: saltstack-formulas/packages-formula#55 (comment).

@noelmcloughlin
Copy link
Member Author

This proposal emerged at saltstack-formulas/packages-formula#55

Declaration

  retry_option:
    # https://docs.saltstack.com/en/latest/ref/states/requisites.html#retrying-states
    attempts: 5
    until: True
    interval: 30
    splay: 20

Usage:

    - retry: {{ packages.retry_option|json }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants