Exercise 6: Flux Python API basics
- Clone the workflow examples from the Flux github:
$ git clone https://github.com/flux-framework/flux-workflow-examples.git $ cd flux-workflow-examples/job-submit-api - Run the job submit api and job cancellation workflow examples. Review the python scripts included in those examples to see how
fluxmethods are being used. - Run the Python Job Submit/Wait, Python Asynchronous Bulk Job Submission, and Using Flux job status and control API work examples. Review the scripts included in those examples to see how the
FluxExecutorandconcurrent.futuresare being used.
Notes / Solutions
- Most of the examples explicitly include instructions for getting a Slurm allocation and starting Flux. See Section 1 for general instructions on getting an allocation in Flux or starting Flux under Slurm.
- See note 2.
Section 5 | Section 6 | Exercise 6 | Appendix 1
Back to index




