job
andurel generate job creates a River background job: argument types under queue/jobs/ and worker registration in the queue package.
When to use
- Add a new background job plus worker wiring.
- Do not confuse with
andurel inspect jobs, which only lists existing job files.
Usage
1andurel generate job NAME [flags]
NAME is CamelCase (for example SendWelcomeEmail or SendReceipt).
Flags
| Flag | What it does |
|---|---|
--queue |
Assign the job to a specific River queue name |
--dry-run / --diff |
Preview without writing; see generate |
Examples
1andurel generate job SendWelcomeEmail --dry-run --json
2andurel generate job SendReceipt
3andurel generate job ProcessInvoice --queue billing
Next
1andurel inspect jobs --json
See Queues for inserting jobs from the web process and running dedicated workers.