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

Convenience: flag for just returning jobid or json #24

Open
kristinriebe opened this issue Sep 4, 2015 · 0 comments
Open

Convenience: flag for just returning jobid or json #24

kristinriebe opened this issue Sep 4, 2015 · 0 comments

Comments

@kristinriebe
Copy link
Member

I'd like to have a flag that suppresses any other output and just returns the id of a newly created job after sending a new job request. I.e. something like:
uws --host https://www.cosmosim.org/uws/query --user <...> --password <...> job new query='...' table='...' --returnjobid
shall return only the jobid, or an error if no job was created.
As it is now, a script using the uws-client would need to parse the output first to find the job id.
Alternatively, we could also return the job parameters as json if a --json flag is set.

Or would you suggest another "hook", maybe importing UWS as a module in a Python script and then use the more basic functions when writing scripts for sending many jobs at once?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant