<#3228 Add an `--interruptible` option to `pyflyte...
# flyte-github
c
#3228 Add an
--interruptible
option to
pyflyte run --remote
Pull request opened by redartera ## Why are the changes needed? This change introduces a feature for users who use
pyflyte run --remote
. Currently, if a user wants to override the default
interruptible
setting defined in the workflow or launch plan, they cannot do so directly via the CLI. This PR adds an
--interruptible
option to
pyflyte run
, providing a command-line mechanism to control this behaviour for remote executions. This gives users more direct control over the interruptible setting for their workflow executions launched via
pyflyte run --remote
. ## What changes were proposed in this pull request? 1. Added a new
--interruptible
option to the
pyflyte run
command. • This option accepts boolean values (
true
,
false
, case-insensitive). • It allows users to explicitly set the
interruptible
property for the remote execution. • If the option is not provided, the default interruptible behaviour of the registered Flyte entity (workflow/launch plan) is used (value remains
None
). ## How was this patch tested? Added a new parametrized unit test
test_pyflyte_run_wf_interruptible
that mocks the
FlyteRemote
client. This test verifies that when
pyflyte run --remote
is invoked with different variations of the
--interruptible
option ### Summary by Bito This PR adds a new '--interruptible' option to the 'pyflyte run --remote' command, giving users explicit control over execution behavior. The implementation updates the CLI configuration and function calls to handle this flag, enhancing user control and flexibility for remote workflow executions. Comprehensive tests for various boolean representations are included. Unit tests added: True Estimated effort to review (1-5, lower is better): 1 flyteorg/flytekit