local worker type is currently supported.
Worker Definition
Local worker configuration.
Local Worker
Executes tasks locally on the machine running NativeLink.Core Configuration
Worker identifier for logging and metrics. Defaults to array index. Used as prefix for worker ID (
{name}-{uuid}).Scheduler WorkerAPI endpoint.
Reference to a
fast_slow store. The fast store must be a filesystem store for hardlinking. The slow store must resolve to the same CAS the scheduler uses.Directory for task execution. Must be on same filesystem as the fast store’s
content_path for hardlinking. Purged on startup.Platform Properties
Worker capabilities advertised to scheduler. Keys must match scheduler’s
supported_platform_properties.Each property can be:values- Static list of valuesquery_cmd- Command to execute for dynamic values (output split by newlines)
Execution Settings
Maximum action execution time (seconds). Tasks requesting longer timeouts are rejected. Default: 20 minutes.
Maximum time for uploading results to CAS (seconds). Actions exceeding this fail with
DeadlineExceeded. Default: 10 minutes.Maximum concurrent tasks (0 = unlimited).
Disable NativeLink timeout enforcement. Set to
true if entrypoint handles timeouts (e.g., docker containers with download time).When true:- Worker uses
max_action_timeoutfor all actions - Actual timeout must be enforced via
additional_environmentwithtimeout_millisandside_channel_file
Command prefix for all actions. Parsed as command + args, not shell.Example:
"entrypoint": "run.sh" with action command "sleep 5" executes as run.sh sleep 5.Script to run before each action. Worker pauses if script exits non-zero. Useful for resource checks.
Result Upload
Controls how action results are uploaded.
Environment Variables
Environment variables to set for task execution. Values can be static or dynamic.Sources:Side channel file format (JSON):
value- Static stringproperty- From action platform propertyfrom_environment- From worker’s environmenttimeout_millis- Task timeout in millisecondsside_channel_file- Path for out-of-band communicationaction_directory- Temporary directory for action (auto-cleaned)
Directory Cache
Caches reconstructed input directories using hardlinks to speed up repeated actions.