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
The amount of memory to increase by on each retry.
Given the current memory, returns the next memory to retry this task with, or None, if the task should not be retried.
Given the current memory, returns the next memory to retry this task with, or None, if the task should not be retried.
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
Determines if this task ran out of memory, and if so, it will get the next memory value with which to be retried.
Determines if this task ran out of memory, and if so, it will get the next memory value with which to be retried.
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.
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.
Tries to get the next memory value with which to run task.
Tries to get the next memory value with which to run task. It will enforce tha the task will not require more memory than in the system.
the system resources under which this task should run.
the task execution information for the task to be retried.
true if the task is to be retried, false otherwise.
The maximum amount of memory with which to retry.
True if we should use the system memory as the maximum memory, false to use the heap size.
True if we should use the system memory as the maximum memory, false to use the heap size.
A trait for all tasks that wish to linearly increase their memory upon each retry.
By default retries until the maximum system memory is reached, and increases by the initial amount of memory required.