Is there a way to check the status and logs of a workflow submitted through hera? #1356
-
Basically the title. I can create a workflow with Hera. But I can't check the current status or the logs for the workflow |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @piby180! The status is part of the workflow object that you get back from the hera/tests/submissions/test_hello_world.py Lines 35 to 36 in 1567eae The logs can be fetched through the hera/src/hera/workflows/service.py Line 1056 in 1567eae Sorry for the delay, we had a busy ArgoCon/KubeCon last week! |
Beta Was this translation helpful? Give feedback.
-
Hi @elliotgunton But how do we get the status of a workflow which was created asynchronously? |
Beta Was this translation helpful? Give feedback.
-
@elliotgunton Sorry for the delay. I was on vacation :) I am not able to fetch the logs. My workflow is storing logs to S3 as an artifact.
I tried s.pod_logs(wf_name, pod_name) but got the same error. My k8s role has permissions to read pod logs. Ideally I want to get the link to the log file on S3. Thanks for your help :)
|
Beta Was this translation helpful? Give feedback.
Hey @piby180! The status is part of the workflow object that you get back from the
create
method, you can check it like so:hera/tests/submissions/test_hello_world.py
Lines 35 to 36 in 1567eae
The logs can be fetched through the
workflow_logs
function on theWorkflowsService
hera/src/hera/workflows/service.py
Line 1056 in 1567eae
Sorry for the delay, we had a busy ArgoCon/KubeCon last week!