Skip to main content

work

Function work 

Source
pub async fn work(registry: JobRegistry) -> Result<(), AppError>
Expand description

Runs forever, claiming and executing jobs one at a time until the process is stopped (Ctrl+C / killed - no signal handling here, same as Laravel’s own queue:work without --stop-when-empty). A job whose handler fails, or whose job_type has no registered handler, is recorded as a failure rather than retried forever or silently dropped.