Commands
jobs
Create and manage background jobs
jobs Command
The jobs
command helps you create and manage background jobs in your zopio
application.
Usage
Options
-l, --list
- List all registered jobs-c, --create <name>
- Create a new job-t, --trigger <jobId>
- Manually trigger a job-s, --schedule <cron>
- Set job schedule (cron expression)
Examples
Job Types
The Zopio CLI supports three types of background jobs:
Cron Jobs
Scheduled jobs that run on a regular basis using cron expressions.
Example: (run every day at midnight)
Queue Jobs
Jobs that process items from a queue.
Example:
Worker Jobs
Long-running worker processes.
Example:
Internationalization Support
All jobs created with the jobs
command have built-in internationalization support. Job names, descriptions, and log messages can be translated into all configured languages.
Example job structure with i18n support: