PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10725826

Serializing duration-limited task executions in an on demand code execution system

Granted 2020-07-28 · Filed 2017-06-21 · Application 15/629,546 · Utility · Kind B1

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Sahil Sagar, Piscataway, NJ (US); Michael Raposa, White Plains, NY (US)
CPC, current
G06F9/485; G06F9/5038; G06F9/45508; G06F9/45558; G06F2009/4557; G06F2009/45583; G06F2009/45591; G06F2009/45595

Abstract

Systems and methods are described for conducting data processing against a target data set using multiple, duration-limited task executions in an on-demand code execution system. The on-demand code execution system can enable execution of user-specified code as a task, but may establish duration limits for each task execution. Such duration limits can sometimes cause a task execution to fail, such as when processing a large data set. To overcome this problem, this disclosure enables data processing to occur over multiple task executions. Each task execution can process a portion of a data set selected such that data processing of the portion can complete prior to expiration of the duration limit. If an additional portion remains, the task execution can generate state information to enable an additional execution to conduct data processing on an additional portion, and pass that state information within a call to start the additional execution.

Claims

20 claims · independent 1, 6 and 14

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A system to implement data processing code in an on-demand code execution system, wherein the on-demand code execution system generates one or more execution environments in which to execute tasks corresponding to the data processing code, and wherein task executions on the on-demand code execution system are subject to a per-execution duration limit, the system comprising:

  1. Claim 1, element e1a non-transitory data store configured to store the data processing code, 380–452
  2. Claim 1, element e2wherein the data processing code, when executed as a task within an execution environment, causes the on-demand code execution system to conduct data processing against a target data set of a fixed size, 454–656
  3. Claim 1, element e3wherein an individual execution of the task conducts data processing against a portion of the target data set and, if additional portions of the target data set remain for processing, calls for an additional execution of the task on the on-demand code execution system; and 658–926
  4. Claim 1, element e4one or more processors in communication with the non-transitory data store and configured with computer-executable instructions to: 932–1062
  5. Claim 1, element e5receive a request to execute the task to process the target data set, the request identifying the target data set; 1064–1177
  6. Claim 1, element e6initiate an initial execution of the task on the on-demand code execution system, 1179–1259
  7. Claim 1, element e7wherein the initial execution of the task is subject to the per-execution duration limit established by the on-demand code execution system, and wherein the initial execution of the task instructs and causes the on-demand code execution system to: 1261–1507
  8. Claim 1, element e8initiate processing of the target data set by conducting the data processing against a first portion of the target data set, the first portion of the target data set selected to enable the initial execution of the task to complete the data processing against the first portion prior to expiration of the duration limit; 1509–1827
  9. Claim 1, element e9detect that the data processing against the first portion has completed; 1829–1900
  10. Claim 1, element e10determine that a second portion of the target data set exists for which the data processing has not yet completed; 1902–2015
  11. Claim 1, element e11responsive to detecting that the data processing against the first portion has completed: 2017–2105
  12. Claim 1, element e12generate state information identifying a state of the initial execution of the task on completion of the data processing against the first portion; and 2107–2253
  13. Claim 1, element e13transmit a call from the initial execution to the on-demand code execution system to resume processing of the target data set by initiating an additional execution of the task, the call including the state information; and 2259–2476
  14. Claim 1, element e14initiate the additional execution of the task on the on-demand code execution system, 2482–2566
  15. Claim 1, element e15wherein the additional execution of the task causes the on-demand code execution system to identify the second portion based at least in part on the state information and resume the processing of the target data set by conducting the data processing against the second portion, and wherein the additional execution of the task is subject to the per-execution duration limit established by the on-demand code execution system.2568–2992
4 dependent claims: 2 to 5 (2, 5 on claim 1; 3 on 2; 4 on 3)

Claim 2

Depends on claim 1.

2. The system of claim 1 , wherein

  1. Claim 2, element e1the data processing corresponds to at least one of video encoding, audio encoding, or application of a hashing algorithm.35–155

Claim 3

Depends on claim 2.

3. The system of claim 2 , wherein

  1. Claim 3, element e1the hashing algorithm is an MD5 hashing algorithm, and wherein the state information includes a 128-bit hash value.35–149

Claim 4

Depends on claim 3.

4. The system of claim 3 , wherein

  1. Claim 4, element e1the state information includes a value of one or more bits of a final section of the first portion not constituting a 512-bit chunk.35–166

Claim 5

Depends on claim 1.

5. The system of claim 1 , wherein

  1. Claim 5, element e1the state information is formatted as JavaScript Object Notation (JSON) data.35–111

Claim 6

Independent claim.

6. A computer-implemented method comprising:

  1. Claim 6, element e1obtaining data processing code executable as a task on an on-demand code execution system to process a target data set, 45–163
  2. Claim 6, element e2wherein executions of the task are subject to a per-execution duration limit on the on-demand code execution system, and wherein an individual execution of the task instructs and causes the on-demand code execution system to: 165–389
  3. Claim 6, element e3initiate processing of the target data set by conducting data processing against a portion of the target data set of a fixed size, the portion selected to enable the individual execution to complete the data processing against the portion prior to expiration of the duration limit; 391–671
  4. Claim 6, element e4detect that the data processing against the portion has completed; 673–738
  5. Claim 6, element e5determine whether an additional portion of the target data set exists for which the data processing has not yet completed; and 740–861
  6. Claim 6, element e6responsive to detecting that the data processing against the portion has completed, if the additional portion of the target data set exists for which the data processing has not yet completed: 867–1058
  7. Claim 6, element e7generate state information regarding a state of the individual execution on completion of the data processing against the portion; and 1060–1189
  8. Claim 6, element e8transmit a call to the on-demand code execution system to resume processing of the target data set by initiating an additional execution of the task, the call including the state information; 1195–1385
  9. Claim 6, element e9initiating a first execution of the task on the on-demand code execution system, 1387–1466
  10. Claim 6, element e10wherein the first execution is subject to the per-execution duration limit on the on-demand code execution system, and wherein the first execution of the task causes the on-demand code execution system to initiate processing of the target data set by conducting the data processing against a first portion of a target data set and to determine that a second portion of the target data set exists for which the data processing has not yet completed; 1468–1915
  11. Claim 6, element e11receiving a call generated by the first execution to resume processing of the target data set by initiating the additional execution of the task, the call including state information of the first execution; and 1917–2122
  12. Claim 6, element e12initiating a second execution of the task on the on-demand code execution system, 2128–2208
  13. Claim 6, element e13wherein the second execution is subject to the per-execution duration limit on the on-demand code execution system, and wherein the second execution of the task causes the on-demand code execution system to identify the second portion based at least in part on the state information of the first execution and resume the processing of the target data set by conducting the data processing against the second portion of the target data set wherein the second execution of the task executes during a period subsequent to expiration of an execution period for the first execution that is set according to the per-execution duration limit.2210–2844
7 dependent claims: 7 to 13 (7, 8, 9, 10, 11, 12, 13 on claim 6)

Claim 7

Depends on claim 6.

7. The computer-implemented method of claim 6 , wherein

  1. Claim 7, element e1the data processing corresponds to application of an MD5 hashing algorithm, and wherein the state information includes a 128-bit hash value produced by the MD5 hashing algorithm.56–233

Claim 8

Depends on claim 6.

8. The computer-implemented method of claim 6 , wherein

  1. Claim 8, element e1the data processing code includes a serialization function callable to generate the state information regarding a state of a current execution, and wherein the first execution causes the on-demand code execution system to call the serialization function to generate the state information of the first execution.56–366

Claim 9

Depends on claim 6.

9. The computer-implemented method of claim 6 , wherein

  1. Claim 9, element e1the data processing code includes a deserialization function callable to identify a portion of a target data set to be processed by a current execution, and wherein the second execution causes the on-demand code execution system to call the deserialization function to identify the second portion of the target data set from the state information of the first execution.56–425

Claim 10

Depends on claim 6.

10. The computer-implemented method of claim 6 , wherein

  1. Claim 10, element e1the data processing code includes an alignment function callable to partition the target data set into a plurality of portions, 57–183
  2. Claim 10, element e2wherein the first execution causes the on-demand code execution system to call the alignment function, and wherein the state information of the first execution includes information identifying the plurality of portions.185–403

Claim 11

Depends on claim 6.

11. The computer-implemented method of claim 6 , wherein

  1. Claim 11, element e1the state information of the first execution includes a value of a variable defined within the data processing code.57–172

Claim 12

Depends on claim 6.

12. The computer-implemented method of claim 6 , wherein

  1. Claim 12, element e1the second execution causes the on-demand code execution system to determine that a third portion exists for which the data processing has not yet completed, and wherein the computer implemented method further comprises: 57–276
  2. Claim 12, element e2receiving a call generated by the second execution to initiate another execution of the task, the call generated by the second execution including state information of the second execution; and 278–466
  3. Claim 12, element e3initiating a third execution of the task on the on-demand code execution system, 472–551
  4. Claim 12, element e4wherein the third execution of the task causes the on-demand code execution system to identify the third portion based at least in part on the state information of the second execution and conducts the data processing against the third portion of the target data set.553–819

Claim 13

Depends on claim 6.

13. The computer-implemented method of claim 6 further comprising

  1. Claim 13, element e1determining the fixed size by: 66–95
  2. Claim 13, element e2conducting the data processing on the of the target data set; 97–157
  3. Claim 13, element e3detecting a size of the target data set that is processed in an amount of time not greater than the duration limit; and 159–273
  4. Claim 13, element e4setting the fixed size based on the size of the target data set that is processed in an amount of time not greater than the duration limit.279–417

Claim 14

Independent claim.

14. Non-transitory computer-readable media comprising:

  1. Claim 14, element e1data processing code executable as a task on an on-demand code execution system to process a target data set, 55–163
  2. Claim 14, element e2wherein executions of the task are subject to a per-execution duration limit on the on-demand code execution system, and wherein an individual execution of the task instructs and causes the on-demand code execution system to: 165–389
  3. Claim 14, element e3initiate processing of the target data set by conducting data processing against a portion of the target data set, the portion selected to enable the individual execution to complete the data processing against the portion prior to expiration of the duration limit; 391–655
  4. Claim 14, element e4detect that the data processing against the portion has completed; 657–722
  5. Claim 14, element e5determine whether an additional portion of the target data set exists for which the data processing has not yet completed; and 724–845
  6. Claim 14, element e6responsive to detecting that the data processing against the portion has completed, if the additional portion of the target data set exists for which the data processing has not yet completed: 851–1042
  7. Claim 14, element e7generate state information regarding a state of the individual execution on completion of the data processing against the portion; and 1044–1173
  8. Claim 14, element e8transmit a call to the on-demand code execution system to resume processing of the target data set by initiating an additional execution of the task, the call including the state information; and 1179–1369
  9. Claim 14, element e9management code executable by the on-demand code execution system, 1375–1440
  10. Claim 14, element e10wherein the management code, when executed, causes the on-demand code execution system to: 1442–1531
  11. Claim 14, element e11initiate a first execution of the task on the on-demand code execution system, 1533–1610
  12. Claim 14, element e12wherein the first execution is subject to the per-execution duration limit on the on-demand code execution system, and wherein the first execution of the task causes the on-demand code execution system to initiate processing of the target data set by conducting the data processing against a first portion of the target data set and to determine that a second portion of the target data set exists for which the data processing has not yet completed; 1612–2061
  13. Claim 14, element e13receive a call generated by the first execution to resume processing of the target data set by initiating the additional execution of the task, the call including state information of the first execution; and 2063–2266
  14. Claim 14, element e14initiate a second execution of the task on the on-demand code execution system, 2272–2350
  15. Claim 14, element e15wherein the second execution is subject to the per-execution duration limit on the on-demand code execution system, and wherein the second execution of the task causes the on-demand code execution system to identify the second portion based at least in part on the state information of the first execution and resume the processing of the target data set by conducting the data processing against the second portion of the target data set.2352–2790
6 dependent claims: 15 to 20 (15, 16, 17, 18, 19, 20 on claim 14)

Claim 15

Depends on claim 14.

15. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 15, element e1the first execution of the task is initiated in response to a call to execute the task generated by at least one of a user computing device or a prior execution of the task on the on-demand code execution system.69–280

Claim 16

Depends on claim 14.

16. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 16, element e1the data processing code includes a serialization function callable to generate the state information regarding a state of a current execution, and wherein the first execution causes the on-demand code execution system to call the serialization function to generate the state information of the first execution.69–379

Claim 17

Depends on claim 14.

17. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 17, element e1the data processing code includes a deserialization function callable to identify a portion of a target data set to be processed by a current execution, and wherein the second execution causes the on-demand code execution system to call the deserialization function to identify the second portion of the target data set from the state information of the first execution.69–438

Claim 18

Depends on claim 14.

18. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 18, element e1the data processing code includes an alignment function callable to partition the target data set into a plurality of portions, 69–195
  2. Claim 18, element e2wherein the first execution causes the on-demand code execution system to call the alignment function, and wherein the state information of the first execution includes information identifying the plurality of portions.197–415

Claim 19

Depends on claim 14.

19. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 19, element e1the state information of the first execution includes a value of a variable defined within the data processing code.69–184

Claim 20

Depends on claim 14.

20. The non-transitory computer-readable media of claim 14 , wherein

  1. Claim 20, element e1the second execution determines that a third portion of the target data set exists for which the data processing has not yet completed, and wherein the management code, when executed, further causes the on-demand code execution system to: 69–306
  2. Claim 20, element e2receive a call generated by the second execution to initiate another execution of the task, the call generated by the second execution including state information of the second execution; and 308–494
  3. Claim 20, element e3initiate a third execution of the task on the on-demand code execution system, 500–577
  4. Claim 20, element e4wherein the third execution of the task causes the on-demand code execution system to identify the third portion based at least in part on the state information of the second execution and conducts the data processing against the third portion of the target data set.579–845

Status

active

As of 2026-11-17, the USPTO record for US 10725826 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2037-07-19 (20 years from filing, plus 28 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:28 (20 years from filing, plus 28 days of patent term adjustment)
Term end
2037-07-19 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 4 US patent documents · Cited by: 51 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10725826/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10725826",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:28"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2037-07-19",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10725826?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10725826?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10725826/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10725826",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10725826?v=20261117.2

Data 20261117.2 · as of 2026-11-17