Background jobs are essential for handling time-consuming tasks without blocking API responses. Motia makes background processing simple with queue triggers and automatic job management.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/motiadev/motia/llms.txt
Use this file to discover all available pages before exploring further.
Processing queue events
Create a background worker by defining a Step with a queue trigger:Building an event-driven workflow
Connect multiple Steps together with queue events:Scheduled jobs with cron
Run jobs on a schedule using cron triggers:Multi-trigger Steps
Create Steps that can be triggered by multiple sources:Batch processing with cron
Process batches of items on a schedule:Job retries and error handling
Handle failures gracefully:Queue strategies
Configure queue behavior iniii-config.yaml:
Related concepts
Queue triggers
Learn about queue trigger configuration
Cron triggers
Schedule recurring jobs
Workflows
Build complex multi-step workflows
State management
Store job state and results