Skip to content

Is it possible to return the FLUID job id from flux-submit as decimal? #6429

Answered by grondo
dblitt asked this question in Q&A
Discussion options

You must be logged in to vote

You could popen the following command line:

$ flux submit -n4 hostname | flux job id --to=dec
353630158848

Note that the integer returned here is 64 bit unsigned where it looks like cctools uses int64_t from a peek at that link. Just something to keep in mind.

Alternately, the Flux API does export flux_job_id_parse(3) which can parse a jobid in any format into flux_jobid_t (which is a typedef of uint64_t).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dblitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants