Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Collection of simple examples of flux as it is used in modern workflows

Notifications You must be signed in to change notification settings

flux-framework/flux-workflow-examples

Repository files navigation

WARNING

This repository has been archived. It is no longer maintained and it is likely the examples do not work or are no longer good or suggested examples.

Please look elswhere for examples.

Flux Workflow Examples

The examples contained here demonstrate and explain some simple use-cases with Flux, and make use of Flux's command-line interface (CLI), Flux's C library, and the Python and Lua bindings to the C library.

Requirements

The examples assume that you have installed:

  1. A recent version of Flux

  2. Python 3.6+

  3. Lua 5.1+

1. CLI: Job Submission

Launch a flux instance and schedule/launch compute and io-forwarding jobs on separate nodes using the CLI

2. Python: Job Submission

Schedule/launch compute and io-forwarding jobs on separate nodes using the Python bindings

3. Python: Job Submit/Wait

Submit jobs and wait for them to complete using the Flux Python bindings

4. Python: Asynchronous Bulk Job Submission

Asynchronously submit jobspec files from a directory and wait for them to complete in any order

5. Python: Tracking Job Status and Events

Submit job bundles, get event updates, and wait until all jobs complete

6. Python: Job Cancellation

Cancel a running job

7. Lua: Use Events

Use events to synchronize compute and io-forwarding jobs running on separate nodes

8. Python: Simple KVS Example

Use KVS Python interfaces to store user data into KVS

9. CLI/Lua: Job Ensemble Submitted with a New Flux Instance

Submit job bundles, print live job events, and exit when all jobs are complete

10. CLI: Hierarchical Launching

Launch a large number of sleep 0 jobs

11. C/Lua: Use a Flux Comms Module

Use a Flux Comms Module to communicate with job elements

12. C/Python: A Data Conduit Strategy

Attach to a job that receives OS time data from compute jobs

About

Collection of simple examples of flux as it is used in modern workflows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages