Skip to content

Flux - Add FluxExecutor using native Flux Python API bindings#1758

Draft
jlnav wants to merge 1 commit into
feature/flux_mpi_runnerfrom
feature/flux_executor_module
Draft

Flux - Add FluxExecutor using native Flux Python API bindings#1758
jlnav wants to merge 1 commit into
feature/flux_mpi_runnerfrom
feature/flux_executor_module

Conversation

@jlnav

@jlnav jlnav commented Jul 8, 2026

Copy link
Copy Markdown
Member

FluxExecutor submits jobs directly to Flux via its Python bindings rather than wrapping flux run as a subprocess. It is useful when running inside containers where standard MPI runners are unavailable.

  • New libensemble/executors/flux_executor.py with FluxExecutor and FluxTask
  • Conditionally import FluxExecutor in executors/init.py (ImportError if flux-core bindings are not installed)
  • Append FluxExecutor unit tests to test_flux.py; tests skip automatically when flux-core Python bindings are not present

FluxExecutor submits jobs directly to Flux via its Python bindings
rather than wrapping flux run as a subprocess. It is useful when
running inside containers where standard MPI runners are unavailable.

- New libensemble/executors/flux_executor.py with FluxExecutor and FluxTask
- Conditionally import FluxExecutor in executors/__init__.py (graceful
  ImportError if flux-core bindings are not installed)
- Append FluxExecutor unit tests to test_flux.py; tests skip automatically
  when flux-core Python bindings are not present
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

Successfully merging this pull request may close these issues.

1 participant