C3 AI Documentation Home

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.

Adding a new job 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 TypeDescription
Asynchronous actionRun a single method asynchronously. Learn more.
CronRun logic on a repeating schedule. Learn more.
BatchBreak a large dataset into smaller batches and processes those batches in parallel. Learn more.
MapReduceSplit a dataset, transform it in parallel, and combine back into a single result. Learn more.
WorkflowCompose a complex task from multiple smaller steps. Learn more.

See also

Was this page helpful?