-
Notifications
You must be signed in to change notification settings - Fork 63
Add interruptible override to workflow execution config #minor #410
Add interruptible override to workflow execution config #minor #410
Conversation
Signed-off-by: Nick Müller <[email protected]>
Signed-off-by: Nick Müller <[email protected]>
…ptible Signed-off-by: Nick Müller <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Allows for distinguishment between no value being provided and an override to false Signed-off-by: Nick Müller <[email protected]>
…ptible Signed-off-by: Nick Müller <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #410 +/- ##
==========================================
+ Coverage 61.15% 61.20% +0.04%
==========================================
Files 154 154
Lines 11093 11101 +8
==========================================
+ Hits 6784 6794 +10
- Misses 3602 3604 +2
+ Partials 707 703 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Nick Müller <[email protected]>
Signed-off-by: Nick Müller <[email protected]>
@pmahindrakar-oss dependencies been cleaned up with newly released versions of flyteidl/flyteadmin + |
@katrogan can you review it aswell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, thank you for adding the thorough test cases!
Congrats on merging your first pull request! 🎉 |
* Fixed minor log message formatting Signed-off-by: Nick Müller <[email protected]> * Added override for interruptible flag to execution config Signed-off-by: Nick Müller <[email protected]> * Interruptible override now uses BoolValue wrapper Allows for distinguishment between no value being provided and an override to false Signed-off-by: Nick Müller <[email protected]> * Test comments cleanup Signed-off-by: Nick Müller <[email protected]> * Use released flyteidl/flytepropeller versions Signed-off-by: Nick Müller <[email protected]>
TL;DR
Applies new
interruptible
flag from updatedExecutionSpec
to workflow execution config, allowing for workflows to be flagged as interruptible for a single execution.Type
Are all requirements met?
Complete description
The newly introduced
interruptible
flag of anExecutionSpec
is merged into a workflow's execution config using the existingmergeIntoExecConfig
helper for both launch plan and single task executions. Propeller will use the flag to override theinterruptible
setting for a single execution while still following the existing override rules.Due to the shared
WorkflowExecutionConfigInterface
used bymergeIntoExecConfig
, it's now also possible to specify a "global default" via theApplicationConfig
(defaults tofalse
to ensure backward compatibility), however it seems likemergeIntoExecConfig
never actually reaches this part since there's always something being overridden (k8s security contexst by default)...Tests have been added covering the flyteadmin part of the interruptible override, manual smoke testing seems to behave correctly (workflow/single task executions + relaunches have been checked using the flytesnacks repo).
Additionally, some minor log cleanup was included (incorrect formatting).
Tracking Issue
flyteorg/flyte#2284
Follow-up issue
NA