Laravel - Queues - Processing A Specified Number Of Jobs

The --once option may be used to instruct the worker to only process a single job from the queue:

    
    php artisan queue:work --once
	

The --max-jobs option may be used to instruct the worker to process the given number of jobs and then exit. This option may be useful when combined with Supervisor so that your workers are automatically restarted after processing a given number of jobs, releasing any memory they may have accumulated:

    
    php artisan queue:work --max-jobs=1000