user
08/09/2022, 4:11 AMancient-application-36103
08/09/2022, 4:12 AMancient-application-36103
08/09/2022, 4:13 AMancient-application-36103
08/09/2022, 4:17 AMfinished
to reflect this issue.ancient-application-36103
08/09/2022, 4:20 AMfinished
as currently defined in the API docs -
Indicates whether or not the run completed.
A run completed if its 'end' step completed.
may not be what you need since this definition of finished
is not equivalent to not running
ancient-application-36103
08/09/2022, 4:25 AMrunning
like property that relies on heartbeats emitted at the task-level and run-level to deduce the liveness of any task/run.user
08/09/2022, 4:27 AMancient-application-36103
08/09/2022, 4:28 AMuser
08/09/2022, 4:29 AMuser
08/09/2022, 4:29 AMuser
08/09/2022, 4:30 AMuser
08/09/2022, 4:30 AMuser
08/09/2022, 4:31 AMancient-application-36103
08/09/2022, 4:32 AMtask['_graph_info'].data
includes all the information about various decorators - that should allow you to impute the retries specified by the user for a step.ancient-application-36103
08/09/2022, 4:35 AMancient-application-36103
08/09/2022, 4:36 AMuser
08/09/2022, 4:36 AMuser
08/09/2022, 4:37 AMuser
08/09/2022, 4:37 AMuser
08/09/2022, 4:37 AMuser
08/09/2022, 4:37 AMancient-application-36103
08/09/2022, 4:39 AMpython flow.py argo-workflows status --run-id foo
?user
08/09/2022, 4:39 AMuser
08/09/2022, 4:40 AMuser
08/09/2022, 4:41 AMuser
08/09/2022, 4:42 AMancient-application-36103
08/09/2022, 4:43 AMuser
08/09/2022, 4:45 AMancient-application-36103
08/09/2022, 4:46 AMuser
08/09/2022, 4:50 AMget_workflow
used in the PR above was added to argo_client in our branch: https://github.com/zillow/metaflow/blob/zillow/argo/metaflow/plugins/argo/argo_client.py#L60-L74user
08/09/2022, 4:51 AMancient-application-36103
08/09/2022, 4:52 AMuser
08/09/2022, 9:02 PMancient-application-36103
08/09/2022, 9:32 PMfinished
(also, it works as documented today). A running
or liveness
property can be added which tracks the heart beats (but the returned value will only be eventually consistent which wouldn't address your use case).
The Metaflow Client right now has no notion/visibility into plugins and the logic to determine whether an Argo Workflow is currently executing or not has no dependency on the actual Metaflow code. At this point, we don't have a programmatic API to Metaflow commands implemented, but we can definitely introduce python flow.py argo-workflows status --run-id foo
- but that wouldn't address your use case either. You should be able to introduce a LiveRun
class within metaflow-extensions
directly and we can introduce a similar capability when we ship support for programmatic API for Metaflow commands.user
08/09/2022, 9:42 PMAdo you mean that the heart beat information is not yet available programmatically? My understanding is yes, that heart beats are used by the Metaflow UI, but are not yet able to help determine run status programmatically.orrunning
property can be added which tracks the heart beats (but the returned value will only be eventually consistent which wouldn't address your use case).liveness
ancient-application-36103
08/10/2022, 11:33 PMuser
08/11/2022, 12:13 AM