Create Long-Running Jobs
At a high-level, a job is a way to run logic asynchronously. They are useful to execute logic on a schedule, to parallelize the execution of complex logic, or simply to process logic in the background to provide a better user experience for users.
When you create a job, job entries are added to a queue. Worker nodes monitor those queues and pick job entries for execution.
Example of jobs workflow for adding a job to your application
These are the different types of jobs available. See the table below for details, as well as the specific resources for more information.
| Job Type | Description |
|---|---|
| Asynchronous action | Run a single method asynchronously. Learn more. |
| Cron | Run logic on a repeating schedule. Learn more. |
| Batch | Break a large dataset into smaller batches and processes those batches in parallel. Learn more. |
| MapReduce | Split a dataset, transform it in parallel, and combine back into a single result. Learn more. |
| Workflow | Compose a complex task from multiple smaller steps. Learn more. |