Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to status watch command to give JSON output #37

Open
lossyrob opened this issue Sep 7, 2022 · 0 comments
Open

Add option to status watch command to give JSON output #37

lossyrob opened this issue Sep 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@lossyrob
Copy link
Contributor

lossyrob commented Sep 7, 2022

The command which currently polls for workflow status is pctasks records status workflow --watch ${WORKFLOW_ID}. This provides useful console output for users to see how their workflow is progressing. However, it would also be useful for any automated systems that submit a workflow and want to wait until the job succeeds or fails. In that case, it would be ideal to have some JSON output to stdout that gives job information, like whether it passed or failed, so that one could script downstream processing based on the result of the workflow.

E.g. something like pctasks records status workflow --watch --json ${WORKFLOW_ID}

@lossyrob lossyrob added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant