Argo: Log during wk submit

Created on 6 Jun 2020  路  6Comments  路  Source: argoproj/argo

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.

enhancement

Most helpful comment

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

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings