diff --git a/config/queue.php b/config/queue.php index b17e5a9..bb16459 100644 --- a/config/queue.php +++ b/config/queue.php @@ -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