Get to know tasks and schedules, the primary components for background job management in Mergent
Tasks | Schedules | |
---|---|---|
Frequency | Individual, one-off jobs. | Recurring jobs, as often as needed (minute, daily, specific weekdays, etc.). |
Functionality | Once created, the task is added to a queue and Mergent ensures it’s reliably processed by your application. | When triggered, the schedule creates a task which is then processed by your application. |
Time Options | 1. Immediately when queued 2. After a delay 3. At a specific scheduled_for time & date | Recurring based on the provided cron or rrule . |
Failures & Retries | Automatically handles failures and retries. | Schedules themselves don’t handle failures, but the tasks they create do. |
Workflow Diagram of Tasks and Schedules