Skip to content

[Documentation] Show how to use the FluxExecutor #518

@jan-janssen

Description

@jan-janssen

Example:

from executorlib import Executor
import flux.job

with flux.job.FluxExecutor() as flux_executor:
    with Executor(flux_executor=flux_executor) as exe:
        future = exe.submit(sum, [1, 1])
        print(future.result())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions