Reputation: 1
For my current project, after I trigger a workflow, I need to check the status of its execution. I am not sure about the exact command. I have tried 'get-workflow' but it didn't seem to work.
Upvotes: 0
Views: 507
Reputation: 88
There are a few ways, increasing in order of heavy-handedness.
flyte-cli
. In the future this may move to another location but it's here for now and you can hit it with this command.flyte-cli -p yourproject -d development get-execution -u ex:yourproject:development:2fd90i
In [1]: from flytekit.configuration import set_flyte_config_file
In [2]: set_flyte_config_file('/Users/user/.flyte/config')
In [3]: from flytekit.common.workflow_execution import SdkWorkflowExecution
In [4]: e = SdkWorkflowExecution.fetch('yourproject', 'development', '2fd90i')
Upvotes: 0