Skip to content

[Documentation] Explain how to access the executorlib_worker_id for debugging #749

@jan-janssen

Description

@jan-janssen

The functionality was added in: #748

Basically, the worker ID is available as input parameter to your functions named executorlib_worker_id, so if you have a function like this:

def my_function(a, b, executorlib_worker_id): 
    ...

And you submit it to an executor like this:

exe.submit(my_function, a=1, b=2)

Then executorlib automatically sets the executorlib_worker_id input parameter at the point when the function is executed on the worker, in analogy to the init_function: https://executorlib.readthedocs.io/en/latest/1-single-node.html#performance-optimization

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions