-
Notifications
You must be signed in to change notification settings - Fork 96
Reimpliment suicide trigger as expire trigger #6835
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
Changes from 8 commits
12dc748
b58a630
c4d6db6
4658eac
99de001
cbfb7be
531994b
56ed221
938fb6b
ddb2410
8ed68e7
f4db58f
4a6572d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Reformulate suicide triggers to expire tasks. | ||
| Fixes a rare bug that could allow tasks to run after suicide triggering. | ||
| The "expired" output is now completed on suicide triggered tasks. | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -416,6 +416,40 @@ def get_script_common_text(this: str, example: Optional[str] = None): | |||||||||||||
| The default time zone is now ``Z`` instead of the local time of | ||||||||||||||
| the first workflow start. | ||||||||||||||
| ''') | ||||||||||||||
| with Conf('experimental', desc=''' | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Think we can have this as a global option too? That way we don't have to alter all our workflows twice (once to test, and once to undo when it goes live)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Experimental features are for canary testing. I'm not sure it's a good idea to turn on experimental features by default, that way users don't know what features they are opting into so aren't going to be attentive to any issues caused by them. I did think we should add a CLI flag though to avoid the need to modify the workflows at all.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. global configs can be user specific
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair point - a user with a lot of workflows might well want to opt in for all of them at once. We could just recommend against doing it centrally in site config.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also wouldn't recommend site wide. Even if I implement it local to my user, I would have to stop and start (or reload?) my workflows for them to pick it up (I believe). Follow on PRs I suppose
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Since 8.5.0 I think) |
||||||||||||||
| Activate experimental features. | ||||||||||||||
|
|
||||||||||||||
| These are preview features which will become the default in future | ||||||||||||||
| releases. | ||||||||||||||
|
|
||||||||||||||
| .. versionadded:: 8.6.0 | ||||||||||||||
| '''): | ||||||||||||||
| Conf('all', VDR.V_BOOLEAN, False, desc=''' | ||||||||||||||
| Activate all experimental features. | ||||||||||||||
|
|
||||||||||||||
| Encouraged for canary testing. | ||||||||||||||
|
|
||||||||||||||
| .. versionadded:: 8.6.0 | ||||||||||||||
| ''') | ||||||||||||||
| Conf('expire triggers', VDR.V_BOOLEAN, False, desc=''' | ||||||||||||||
| This reimplements "suicide triggers" as "expire triggers". | ||||||||||||||
|
|
||||||||||||||
| * When the condition is met, the task will generate the | ||||||||||||||
| ``expired`` output rather than just being removed. | ||||||||||||||
| * The triggered task's | ||||||||||||||
| `flow.cylc[runtime][<namespace>]completion condition` | ||||||||||||||
| will be automatically modified so that expiry completes the | ||||||||||||||
| task's outputs. | ||||||||||||||
|
||||||||||||||
| * The triggered task's | |
| `flow.cylc[runtime][<namespace>]completion condition` | |
| will be automatically modified so that expiry completes the | |
| task's outputs. | |
| * The ``expired`` output will be marked as | |
| :term:`optional` for the triggered task. |
Uh oh!
There was an error while loading. Please reload this page.