# US 2025/0156216 A1 · Asynchronous task execution framework

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156216 A1
- Document ID: US20250156216A1
- Status: Published application
- Kind: A1
- Application number: 18/506,284
- Filed: 2023-11-10
- Published: 2025-05-15
- Earliest claimed: 2023-11-10
- Applicants: Sap SE
- Inventors: Vishnu T R; Dhiraj Jaiswal; Prajwel B K
- Web page: https://patentgrep.com/patent/US20250156216A1

## CPC

- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/5072: {Grid computing}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer-readable storage media for generating, by a task generation service, task metadata representative of a task that is to be executed in the a cloud-based system, recording the task metadata in a table of a database system, publishing the task metadata to a queueing system, receiving, by a task consuming service of a plurality of task consuming services, the task metadata from the queueing system, executing, by the task consuming service, the task, and during execution, updating a state of the task within the table of the database system.

## Claims

### Claim 1

A computer-implemented method for asynchronous task execution in cloud-based systems, the method being executed by one or more processors and comprising:
generating, by a task generation service, task metadata representative of a task that is to be executed in the a cloud-based system;
recording the task metadata in a table of a database system;
publishing the task metadata to a queueing system;
receiving, by a task consuming service of a plurality of task consuming services, the task metadata from the queueing system;
executing, by the task consuming service, the task; and
during execution, updating a state of the task within the table of the database system.

### Claim 2 (depends on 1)

The method of claim 1, wherein executing the task is performed in response to validating the task by determining that the state of the task indicates that the task is to be executed.

### Claim 3 (depends on 2)

The method of claim 2, wherein executing the task is performed further in response to validating the task by determining that any precedent task identified in the task metadata was successfully executed.

### Claim 4 (depends on 1)

The method of claim 1, wherein the task metadata comprises a retry configuration that defines one or more retriable errors, each representing a respective error, in response to which a retry of execution of the task is allowed.

### Claim 5 (depends on 4)

The method of claim 4, wherein the retry configuration further defines one or more retry intervals for the one or more retriable errors.

### Claim 6 (depends on 1)

The method of claim 1, wherein the task consuming service receives the task metadata in response to the task consuming service being subscribed to the task with the queueing system.

### Claim 7 (depends on 1)

The method of claim 1, further comprising deleting a message representative of the task in the queueing system in response to one or more of the task being completed and the task failing.

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for asynchronous task execution in cloud-based systems, the operations comprising:
generating, by a task generation service, task metadata representative of a task that is to be executed in the a cloud-based system;
recording the task metadata in a table of a database system;
publishing the task metadata to a queueing system;
receiving, by a task consuming service of a plurality of task consuming services, the task metadata from the queueing system;
executing, by the task consuming service, the task; and
during execution, updating a state of the task within the table of the database system.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein executing the task is performed in response to validating the task by determining that the state of the task indicates that the task is to be executed.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein executing the task is performed further in response to validating the task by determining that any precedent task identified in the task metadata was successfully executed.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the task metadata comprises a retry configuration that defines one or more retriable errors, each representing a respective error, in response to which a retry of execution of the task is allowed.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the retry configuration further defines one or more retry intervals for the one or more retriable errors.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the task consuming service receives the task metadata in response to the task consuming service being subscribed to the task with the queueing system.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein operations further comprise deleting a message representative of the task in the queueing system in response to one or more of the task being completed and the task failing.

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for asynchronous task execution in cloud-based systems, the operations comprising:
generating, by a task generation service, task metadata representative of a task that is to be executed in the a cloud-based system;
recording the task metadata in a table of a database system;
publishing the task metadata to a queueing system;
receiving, by a task consuming service of a plurality of task consuming services, the task metadata from the queueing system;
executing, by the task consuming service, the task; and
during execution, updating a state of the task within the table of the database system.

### Claim 16 (depends on 15)

The system of claim 15, wherein executing the task is performed in response to validating the task by determining that the state of the task indicates that the task is to be executed.

### Claim 17 (depends on 16)

The system of claim 16, wherein executing the task is performed further in response to validating the task by determining that any precedent task identified in the task metadata was successfully executed.

### Claim 18 (depends on 15)

The system of claim 15, wherein the task metadata comprises a retry configuration that defines one or more retriable errors, each representing a respective error, in response to which a retry of execution of the task is allowed.

### Claim 19 (depends on 18)

The system of claim 18, wherein the retry configuration further defines one or more retry intervals for the one or more retriable errors.

### Claim 20 (depends on 15)

The system of claim 15, wherein the task consuming service receives the task metadata in response to the task consuming service being subscribed to the task with the queueing system.
