Task timeouts based on input data characteristics
AssigneeAmazon Technologies, Inc.
InventorsKathryn Marie Shih, Carl Louis Christofferson, Richard Jeffrey Cole, Peter Sirota, Vaibhav Aggarwal
Life of this patent
Estimating the term…
Abstract
Methods and systems for task timeouts as a function of input data size are disclosed. A definition of a task is received. The definition of the task indicates a set of input data for the task. A timeout duration for the task is determined based on the set of input data. The timeout duration varies with one or more characteristics of the set of input data. The execution of the task is initiated. The execution of the task is stopped if the execution of the task exceeds the timeout duration.
Claims22
A system, comprising:
- a plurality of computing devices configured to implement a plurality of resources of a provider network, wherein the resources are organized into a plurality of resource pools;
- and
- one or more computing devices configured to implement a resource manager, wherein the resource manager is configured to:
- receive a task specification comprising an indication of an input data set to be processed by a task, wherein the input data set is characterized by one or more characteristics including a size of at least a portion of the input data set;
- determine an estimated execution duration for the task as a function of the one or more characteristics of the input data set including the size of at least the portion of the input data set to be processed by the task;
- determine a timeout duration for the task based on the estimated execution duration for the task;
- subsequent to determining the timeout duration for the task, initiate execution of the task using at least one of the plurality of resource pools;
- monitor an elapsed time of the execution of the task;
- and
- stop the execution of the task if the elapsed time exceeds the timeout duration and if user approval is received.
A computer-implemented method, comprising:
- receiving a definition of a task, wherein the definition of the task indicates a set of input data for the task;
- determining a timeout duration for the task based on one or more characteristics of the set of input data including a size of the set of input data for the task, wherein the timeout duration varies with the one or more characteristics of the set of input data;
- subsequent to determining the timeout duration for the task, initiating execution of the task;
- and
- stopping the execution of the task if the execution of the task exceeds the timeout duration.
A system, comprising:
- at least one processor;
- a memory coupled to the at least one processor, wherein the memory stores program instructions, wherein the program instructions are executable by the at least one processor to:
- receive a definition of a task, wherein the definition of the task indicates a set of input data for the task, wherein the set of input data is characterized by one or more characteristics;
- determine a timeout duration for the task as a function of the one or more characteristics including a size of the set of input data for the task;
- subsequent to determine the timeout duration for the task, initiate execution of the task;
- monitor an elapsed time of the execution of the task;
- and
- stop the execution of the task if the elapsed time exceeds the timeout duration.
A non-transitory computer-readable storage medium storing program instructions computer-executable to perform:
- receiving a definition of a task, wherein the definition of the task indicates a set of input data to be processed by the task;
- determining a timeout duration for the task based on the one or more characteristics including a size of at least a portion of the set of input data to be processed by the task, wherein the timeout duration varies as a function of one or more characteristics of the set of input data;
- subsequent to determining the timeout duration for the task, initiating execution of the task;
- monitoring an elapsed time of the execution of the task;
- and
- interrupting the execution of the task if the elapsed time exceeds the timeout duration.
Dependencies are inferred from the claim text.