PatentRef

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

US 10884787

Execution guarantees in an on-demand network code execution system

Granted 2021-01-05 · Filed 2016-09-23 · Application 15/275,181 · Utility · Kind B1

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Timothy Allen Wagner, Seattle, WA (US); Marc John Brooker, Seattle, WA (US); Jonathan Paul Thompson, Seattle, WA (US); Ajay Nair, Seattle, WA (US)
CPC, current
G06F9/4843; G06F11/1438; G06F9/5027; G06F11/0712; G06F11/0715; G06F11/0754; G06F11/301; G06F11/3017; G06F11/302; G06F11/3466; G06F11/3612; G06Q10/06; G06F2201/81; G06F2201/815; G06F2201/865

Abstract

Systems and methods are described for implementing execution guarantees in an on-demand code execution system or other distributed code execution environment, such that the on-demand code execution system attempts to execute code only a desired number of times. The on-demand code execution system can utilize execution identifiers to distinguish between new and duplicative requests, and can decline to allocate computing resources for duplicative requests. The on-demand code execution system can further detect errors during execution, and rollback the execution to undo the execution's effects. The on-demand code execution system can then restart execution until the code has been execute the desired number of times.

Claims

18 claims · independent 1, 5 and 13

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 comprising:

  1. Claim 1, element e1a non-transitory data store configured to store an execution record of a task, 24–101
  2. Claim 1, element e2wherein the task is associated with code executable to implement functionality corresponding to the task, and wherein executing the task comprises executing the code; and 103–268
  3. Claim 1, element e3one or more processors configured with computer-executable instructions to: 274–348
  4. Claim 1, element e4obtain, from one or more devices external to the system, first instructions instructing the system to execute the task, 350–468
  5. Claim 1, element e5wherein the task is associated with a request to implement an execution guarantee for the task, 470–564
  6. Claim 1, element e6wherein the execution guarantee specifies that the task is to be successfully executed on an on-demand code execution system no more than a desired number of times for instructions including a first execution identifier, 566–785
  7. Claim 1, element e7wherein the execution guarantee is not implemented for instructions not including the first execution identifier, and wherein the first instructions include the first execution identifier; 787–974
  8. Claim 1, element e8obtain an execution record corresponding to the first execution identifier, 976–1050
  9. Claim 1, element e9wherein the execution record indicates whether other executions of the task, associated with the first execution identifier, have successfully occurred or are occurring; 1052–1220
  10. Claim 1, element e10verify, from at least the execution record, that a number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier; and 1222–1512
  11. Claim 1, element e11in response to verifying that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier, respond to the first instructions at least by: 1518–1838
  12. Claim 1, element e12generating an execution environment on the on-demand code execution system in which to execute the task; 1840–1943
  13. Claim 1, element e13initiating an execution of the task on the on-demand code execution system within the execution environment; and 1945–2052
  14. Claim 1, element e14recording a state of execution of the task within the execution record; 2058–2128
  15. Claim 1, element e15obtain, from the one or more devices external to the system, second instructions instructing the system to execute the task, the second instructions including the first execution identifier associated with the request to verify that, for instructions including the first execution identifier, the task is successfully executed on the on-demand code execution system no more than the desired number of times; and 2130–2536
  16. Claim 1, element e16respond to the second instructions to execute the task at least by: 2542–2608
  17. Claim 1, element e17verifying, from at least the execution record, that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring, including the execution initiated in response to the first instructions, is not less than the desired number of times associated with the first execution identifier; and 2610–2983
  18. Claim 1, element e18declining to execute the task on the on-demand code execution system; and 2989–3057
  19. Claim 1, element e19obtain, from the one or more devices external to the system, third instructions instructing the system to execute the task, the third instructions not including the first execution identifier associated with the request, and in response to the third instructions not including the first execution identifier, initiate an additional execution of the task on the on-demand code execution system without implementing the execution guarantee.3063–3500
3 dependent claims: 2 to 4 (2, 3, 4 on claim 1)

Claim 2

Depends on claim 1.

2. The system of claim 1 , wherein

  1. Claim 2, element e1the execution environment is at least one of a virtual machine instance or a container.35–121

Claim 3

Depends on claim 1.

3. The system of claim 1 , wherein

  1. Claim 3, element e1the one or more processors are further configured with the computer-executable instructions to: 35–129
  2. Claim 3, element e2determine that the state of execution of the task within the execution record indicates an error; 131–227
  3. Claim 3, element e3rollback the execution of the task; and 229–263
  4. Claim 3, element e4initiate a second execution of the task.269–308

Claim 4

Depends on claim 1.

4. The system of claim 1 , wherein

  1. Claim 4, element e1the one or more processors are further configured with the computer-executable instructions to: 35–129
  2. Claim 4, element e2determine that the state of execution of the task does not indicate either success or failure after at least a threshold period of time; and 131–266
  3. Claim 4, element e3record that the state of execution of the task is erroneous.272–331

Claim 5

Independent claim.

5. A method implemented by a computing system to manage code execution in an on-demand code execution system, the computer-implemented method comprising:

  1. Claim 5, element e1obtaining, from one or more devices external to the computing system, first instructions instructing the computing system to execute a task, 154–293
  2. Claim 5, element e2wherein the task is associated with a request to implement an execution guarantee for the task, 295–389
  3. Claim 5, element e3wherein the execution guarantee specifies that the task is to be successfully executed on the on-demand code execution system no more than a desired number of times for instructions including a first execution identifier, 391–611
  4. Claim 5, element e4wherein the execution guarantee is not implemented for instructions not including the first execution identifier, 613–725
  5. Claim 5, element e5wherein the task is associated with code executable to implement functionality corresponding to the task, and wherein the first instructions include the first execution identifier; 727–906
  6. Claim 5, element e6obtaining an execution record corresponding to the first execution identifier and indicating a history of executions of the task; 908–1036
  7. Claim 5, element e7verifying, from at least the execution record, that a number of other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier; and 1038–1327
  8. Claim 5, element e8in response to verifying that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier, responding to the first instructions at least by: 1333–1656
  9. Claim 5, element e9generating an execution environment on the on-demand code execution system in which to execute the task; 1658–1761
  10. Claim 5, element e10initiating an execution of the task on the on-demand code execution system within the execution environment; and 1763–1870
  11. Claim 5, element e11recording a state of execution of the task within the execution record; 1876–1946
  12. Claim 5, element e12obtaining, from the one or more devices external to the computing system, second instructions instructing the computing system to execute the task, the second instructions including the first execution identifier associated with the request to verify that, for instructions including the first execution identifier, the task is successfully executed on the on-demand code execution system no more than the desired number of times; and 1948–2377
  13. Claim 5, element e13responding to the second instructions at least by: 2383–2432
  14. Claim 5, element e14verifying, from at least the execution record, that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is not less than the desired number of times associated with the first execution identifier; and 2434–2733
  15. Claim 5, element e15declining to execute the task on the on-demand code execution system; and 2739–2807
  16. Claim 5, element e16obtaining, from the one or more devices external to the computing system, third instructions instructing the system to execute the task, the third instructions not including the first execution identifier associated with the request, and in response to the third instructions not including the first execution identifier, initiating an additional execution of the task on the on-demand code execution system without implementing the execution guarantee.2813–3265
7 dependent claims: 6 to 12 (6, 9 on claim 5; 7 on 6; 8 on 7; 10, 11 on 9; 12 on 11)

Claim 6

Depends on claim 5.

6. The computer-implemented method of claim 5 further comprising:

  1. Claim 6, element e1determining that the state of execution of the task indicates an error; 66–136
  2. Claim 6, element e2rolling back the execution of the task; and 138–176
  3. Claim 6, element e3initiating a second execution of the task.182–223

Claim 7

Depends on claim 6.

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

  1. Claim 7, element e1rolling back the execution of the task comprises executing an undo function associated with the task.56–156

Claim 8

Depends on claim 7.

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

  1. Claim 8, element e1the undo function is included within at least one of the code of the task or code of a second task.56–154

Claim 9

Depends on claim 5.

9. The computer-implemented method of claim 5 further comprising:

  1. Claim 9, element e1during execution of the task, detecting a call to at least one of a second task on the on-demand code execution system or an external service; and 66–207
  2. Claim 9, element e2appending, within the call, a second execution identifier.213–270

Claim 10

Depends on claim 9.

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

  1. Claim 10, element e1the second execution identifier matches the first execution identifier.57–127

Claim 11

Depends on claim 9.

11. The computer-implemented method of claim 9 further comprising:

  1. Claim 11, element e1determining that the state of execution of the task indicates an error; and 67–137
  2. Claim 11, element e2generating a second call, including the second execution identifier, to at least one of the second task or the external service indicating that execution of the task has resulted in an error.143–333

Claim 12

Depends on claim 11.

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

  1. Claim 12, element e1determining that the state of execution of the task indicates an error includes at least one of determining that the execution of the task outputted an error, or determining that an execution environment executing the task has become unhealthy.58–301

Claim 13

Independent claim.

13. Non-transitory computer-readable media including

  1. Claim 13, element e1computer-executable instructions that, when executed by a computing system, cause the computing system to: 53–158
  2. Claim 13, element e2obtain, from one or more devices external to the computing system, first instructions instructing the computing system to execute a task, 160–296
  3. Claim 13, element e3wherein the task is associated with code executable to implement functionality corresponding to the task, 298–402
  4. Claim 13, element e4wherein the task is associated with a request to implement an execution guarantee for the task, 404–498
  5. Claim 13, element e5wherein the execution guarantee specifies that the task is to be successfully executed on an on-demand code execution system no more than a desired number of times for instructions including a first execution identifier, 500–719
  6. Claim 13, element e6wherein the execution guarantee is not implemented for instructions not including the first execution identifier, and wherein the instructions include the first execution identifier; 721–902
  7. Claim 13, element e7verify, from an execution record corresponding to the first execution identifier and indicating a history of executions of the task, that a number of other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier; and 904–1279
  8. Claim 13, element e8in response to verifying that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is less than the desired number of times associated with the first execution identifier, responding to the first instructions at least by: 1285–1608
  9. Claim 13, element e9generating an execution environment on the on-demand code execution system in which to execute the task; 1610–1713
  10. Claim 13, element e10initiating an execution of the task on the on-demand code execution system within the execution environment; and 1715–1822
  11. Claim 13, element e11recording a state of execution of the task within the execution record; 1828–1898
  12. Claim 13, element e12obtain, from the one or more devices external to the computing system, second instructions instructing the computing system to execute the task, the second instructions including the first execution identifier associated with the request to verify that, for instructions including the first execution identifier, the task is successfully executed on the on-demand code execution system no more than the desired number of times; and 1900–2326
  13. Claim 13, element e13respond to the second instructions at least by: 2332–2378
  14. Claim 13, element e14verifying, from at least the execution record, that the number of the other executions of the task that are associated with the first execution identifier and that have successfully occurred or are occurring is not less than the desired number of times associated with the first execution identifier; and 2380–2679
  15. Claim 13, element e15declining to execute the task on the on-demand code execution system; and 2685–2753
  16. Claim 13, element e16obtain, from the one or more devices external to the computing system, third instructions instructing the system to execute the task, the third instructions not including the first execution identifier associated with the request, and in response to the third instructions not including the first execution identifier, initiate an additional execution of the task on the on-demand code execution system without implementing the execution guarantee.2759–3206
5 dependent claims: 14 to 18 (14, 15, 16, 17, 18 on claim 13)

Claim 14

Depends on claim 13.

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

  1. Claim 14, element e1the computer-executable instructions further cause the computing system to: 69–143
  2. Claim 14, element e2determine that the execution record corresponding to the first execution identifier does not exist; and 145–243
  3. Claim 14, element e3generate the execution record corresponding to the first execution identifier.249–326

Claim 15

Depends on claim 13.

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

  1. Claim 15, element e1the computer-executable instructions further cause the computing system to: 69–143
  2. Claim 15, element e2determine that the state of execution of the task indicates an error; 145–213
  3. Claim 15, element e3rollback the execution of the task; and 215–249
  4. Claim 15, element e4initiate a second execution of the task.255–294

Claim 16

Depends on claim 13.

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

  1. Claim 16, element e1the computer-executable instructions further cause the computing system to: 69–143
  2. Claim 16, element e2during execution of the task, detect a call to at least one of a second task on the on-demand code execution system or an external service; and 145–283
  3. Claim 16, element e3determine that the state of execution of the task indicates an error; and 289–357
  4. Claim 16, element e4generate a second call, including the first execution identifier, to at least one of the second task or the external service indicating that execution of the task has resulted in an error.363–550

Claim 17

Depends on claim 13.

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

  1. Claim 17, element e1the computer-executable instructions further cause the computing system to: 69–143
  2. Claim 17, element e2obtain additional instructions to execute the task, 145–195
  3. Claim 17, element e3wherein the additional instructions include a second execution identifier; 197–270
  4. Claim 17, element e4generate a new execution record for the task, 272–316
  5. Claim 17, element e5wherein the new execution record corresponds to the second execution identifier; and 318–397
  6. Claim 17, element e6allocate additional computing resources on the on-demand code execution system in which to execute the task; 403–510
  7. Claim 17, element e7initiate a second execution of the task on the on-demand code execution system utilizing the additional allocated computing resources; and 512–645
  8. Claim 17, element e8record a state of the second execution of the task within the new execution record corresponding to the second execution identifier.651–782

Claim 18

Depends on claim 13.

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

  1. Claim 18, element e1the task is associated with a plurality of stages, 69–118
  2. Claim 18, element e2wherein instructions include a stage indicator identifying one of the plurality of stages, and wherein the computer-executable instructions further cause the computing system to verify, from the execution record, that the stage indicator identifies a stage later than a latest stage indicated in the execution record as having executed successfully.120–468

Status

active

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

Basis
term_20y · pta_days:423 (20 years from filing, plus 423 days of patent term adjustment)
Term end
2037-11-20 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: 158 US patent documents · Cited by: 44 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10884787/ (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": "10884787",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:423"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2037-11-20",
 "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/10884787?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10884787?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10884787/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10884787",
   "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/10884787?v=20261117.2

Data 20261117.2 · as of 2026-11-17