Skip to content

Commit

Permalink
Adding new configuration for queue work
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Nov 16, 2023
1 parent 4d9858c commit b7292f9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,39 @@
*/
'batch_size' => environment( 'QUEUE_BATCH_SIZE', 5 ),

/*
|--------------------------------------------------------------------------
| Maximum number of concurrent batches
|--------------------------------------------------------------------------
|
| The maximum number of batches that can be run concurrently. For example,
| if 1000 queue jobs are dispatched and this is set to 5 with a batch size
| of 100, then 5 batches of 100 will be run concurrently and take two runs
| of the queue to complete.
|
*/
'max_concurrent_batches' => environment( 'QUEUE_MAX_CONCURRENT_BATCHES', 1 ),

/*
|--------------------------------------------------------------------------
| Delete failed or processed queue items after a set time
|--------------------------------------------------------------------------
|
| Delete failed or processed queue items after a set time in seconds.
|
*/
'delete_after' => environment( 'QUEUE_DELETE_AFTER', 60 * 60 * 24 * 7 ),

/*
|--------------------------------------------------------------------------
| Enable the Queue Admin Interface
|--------------------------------------------------------------------------
|
| Enable the queue admin interface to display queue jobs.
|
*/
'enable_admin' => environment( 'QUEUE_ENABLE_ADMIN', true ),

/*
|--------------------------------------------------------------------------
| Provider Configuration
Expand Down

0 comments on commit b7292f9

Please sign in to comment.