Skip to content

[Documentation] Worker for executing multiple Python functions #696

In progress

Description

@jan-janssen

There are basically three ways to use a Python Task Managers:

  • Submit each Python Function as an individual job to the HPC cluster - supported in executorlib by the SlurmClusterExecutor and the FluxClusterExecutor.
  • Submit multiple Python Functions within one HPC job allocation - supported in executorlib by the SlurmJobExecutor and the FluxJobExecutor.
  • Submit multiple Python Functions to the same resources on a given HPC cluster - similar to the block_allocation=True for the SingleNodeExecutor, the SlurmJobExecutor and the FluxJobExecutor but for the SlurmClusterExecutor and the FluxClusterExecutor. This is the standard use case for solutions like https://www.dask.org and https://parsl.readthedocs.io/ so it might be an interesting addition to executorlib.

Activity

  1. jan-janssen commented on Jul 19, 2025

    @jan-janssen
    MemberAuthor

    It is basically similar to the MPIExecSpawner just using pysqa for the submission of the new process via sbatch rather than srun. Still the challenging part is the submission of new workers or the handling of the case when workers are removed from the pool and do not complete a given task.

  2. jan-janssen commented on Jul 20, 2025

    @jan-janssen
    MemberAuthor

    Current challenges would be:

    • keep track of the running workers - I can validate those via the queuing system of the cluster
    • I could start an executor with zero workers and then shut it down when all the futures are evaluated
    • If a worker gets killed then it is important that the task is returned to the pool and another worker can start processing it - I have to understand how the queues in Python work
  3. changed the title [-][Feature] Worker for executing multiple Python functions[/-] [+][Documentation] Worker for executing multiple Python functions[/+] on Sep 8, 2025
  4. jan-janssen commented on Sep 8, 2025

    @jan-janssen
    MemberAuthor

    This functionality was implemented in #763

  5. added
    documentation
    on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions