Skip to content

What is the best way to get job exit code from Python API? #3407

Answered by jameshcorbett
SteVwonder asked this question in Q&A
Discussion options

You must be logged in to vote

I think this can be marked as answered. In addition to the event_wait and JobList interfaces @grondo mentioned above, there are two new interfaces:

  • flux.job.result which returns a JobInfo object which has the returncode property mentioned above.
  • flux.job.FluxExecutor() which returns futures that represent the return code of the job.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@SteVwonder
Comment options

SteVwonder Dec 11, 2020
Maintainer Author

@grondo
Comment options

@grondo
Comment options

@jameshcorbett
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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