Called by the Scheduler immediately prior to execution to allow tasks to perform any necessary last-minute configuration with the knowledge of the exact set of resources they are to be run with.
Called by the Scheduler immediately prior to execution to allow tasks to perform any necessary last-minute configuration with the knowledge of the exact set of resources they are to be run with.
the set of resources that the task will be run with
Implemented to take the fixed amount of cores and memory from the provided resource set.
Implemented to take the fixed amount of cores and memory from the provided resource set.
The system resources available to the task
Either a ResourceSet of the desired subset of resources to run with, or None
Sets the resources that are required by this task, overriding all previous values.
Sets the resources that are required by this task, overriding all previous values.
Sets the resources that are required by this task, overriding all previous values.
Provides access to the currently allocated set of resources for the task.
Provides access to the currently allocated set of resources for the task.
A trait for all tasks that required a specific number of cores and a specific amount of memory. The amount can be decided any time prior to takeResources() being called, but must be a single set of values.