Skip to main content

Module worker

Module worker 

Source

Structs§

WorkerCapabilities
What a worker reported it can do, from the spawn-time handshake.
WorkerClient
A live worker.py subprocess and the plumbing that talks to it.

Constants§

FEATURE_CMF_HOOKS
Worker feature name for serving PPE’s cmf.* hooks natively, with the CMF MessagePayload and the cmf.* hook names.
FEATURE_CREDENTIAL
Worker feature name for reading the task’s credential field.
FEATURE_EXTENSIONS
Worker feature name for delivering the task’s extensions field to a hook.
TASK_CAPABILITIES
Task type that asks the worker which wire-protocol features it implements.
TASK_LOAD_AND_RUN_HOOK
Task type for a hook invocation, as worker.py dispatches on it.
TASK_SHUTDOWN
Task type that asks the worker to exit.

Functions§

resolve_worker_script
Resolve worker.py inside a venv’s site-packages.