Asynchronous jobs
Bulk operations such as adjustments create-bulk return 202 Accepted with a job_id instead of the final result. The API processes the items in the background; the CLI provides two ways to follow the job.
Submit a job
Each item echoes the external_id you supplied, so you can correlate results with your own records. Use --quiet to capture only the job id:
Follow a job
Four commands follow a job, split between the job and jobs groups:
job (singular) accepts several comma-separated ids and returns an array when more than one is given. jobs (plural) adds pagination parameters for listing. Both read the same job data.
Job statuses
A job moves through four statuses:
A job in SUCCEEDED or FAILED is terminal and does not change afterwards.
Wait for completion in a script
Submitting a job returns immediately; the CLI does not wait for it to finish. Poll with deel job status until it reaches a terminal status:
Poll every 5 seconds; the CLI automatically retries job lookups on 429 and 5xx responses.