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
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.
A list of tokens that are looked for in the log file of a process by the default ranOutOfMemory.
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.
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.
Determines if a the task failed because it ran out of memory by looking for various strings in the log file.