My current workflow to debug/develop an Argo workflow is to submit it, get its name, and execute argo logs -f to check the logs.
I do that very often during the early phases of the dev. It would be nice to have an option in argo submit to directly execute argo logs -f upon submission.
That feature would be similar as docker-compose up while the current default is similar to docker-compose up -d.
Note: I am looking for logs and not the --watch argument.
We're considering a related change in https://github.com/argoproj/argo/pull/3179. What do you think of
$ argo submit wf.yaml
$ argo logs -f --latest
or
$ argo submit wf.yaml && argo logs -f --latest
@rbreeze Please make sure argo logs is covered in #3179
--latest would be super useful indeed. A flag to submit for argo logs -f --latest would also a good addition but I guess it's more complicated.
@simster7 will do!
Personally I'd like a flag on the submit command as well. especially when using watch it'd be nice to get the logs there as well :)
$ argo submit --watch --show-logs workflow.yaml
I think you'll be able to do this in low traffic installations v2.9:
argo submit my-wf.yaml
argo logs --follow @latest
This won't work in high traffic situations.
Most helpful comment
We're considering a related change in https://github.com/argoproj/argo/pull/3179. What do you think of
or
@rbreeze Please make sure
argo logsis covered in #3179