Optimizing timeout settings for nodes in a workflow
AssigneePaypal, Inc.
InventorsSrinivasan Manoharan, Joydeep Hazra, Shivam Pandey
Life of this patent
Estimating the term…
Abstract
A unidirectional workflow execution engine is accessed. The unidirectional workflow includes at least a first node and a second node, where the first node is executed before the second node. A timeout setting of the first node is retrieved. An actual execution time of the first node is determined. A difference between the retrieved timeout setting and the actual execution time of the first node is calculated. A timeout setting of the second node is retrieved. The timeout setting of the second node is modified by adding, to the retrieved timeout setting of the second node, the calculated difference between the retrieved timeout setting and the execution time of the first node.
Claims20
A system, comprising:
- a non-transitory memory;
- and
- one or more hardware processors coupled to the non-transitory memory and configured to read instructions from the non-transitory memory to cause the system to perform operations comprising:
- accessing a unidirectional workflow execution engine that includes at least a first node and a second node, the first node being executed before the second node;
- retrieving a timeout setting of the first node;
- determining an execution time of the first node;
- calculating a difference between the retrieved timeout setting and the execution time of the first node;
- retrieving a timeout setting of the second node;
- and
- modifying the timeout setting of the second node by adding, to the retrieved timeout setting of the second node, the calculated difference between the retrieved timeout setting and the execution time of the first node.
A method, comprising:
- accessing a workflow in a Service Oriented Architecture (SOA) environment, wherein the workflow includes a plurality of nodes;
- determining, for a selected node of the plurality of nodes, a maximum amount of time that is allotted to the workflow from a beginning of the workflow to a completed execution of the selected node, wherein the selected node has one or more ancestor nodes;
- determining, an execution time of the one or more ancestor nodes;
- and
- calculating an optimized timeout value of the selected node as a function of the maximum amount of time and the execution time, wherein the accessing the workflow, the determining the maximum amount of time, the determining the execution time, or the calculating is performed via one or more hardware processors.
A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
- accessing a workflow in a Service Oriented Architecture (SOA) environment, wherein the workflow comprises a plurality of nodes including a first node and a second node, wherein the first node is a parent node of the second node;
- configuring a timeout value of the first node and a timeout value of the second node;
- executing the first node;
- determining an execution time of the first node;
- calculating an amount of time saved associated with the execution of the first node by subtracting the execution time from the configured timeout value of the first node;
- and
- determining an optimized timeout value of the second node as a function of the amount of time saved and the configured timeout value of the second node.
Dependencies are inferred from the claim text.