From b7292f95a0f4c1ccfb745081c0b81ccb2d626b6b Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Thu, 16 Nov 2023 16:27:03 -0500 Subject: [PATCH] Adding new configuration for queue work --- config/queue.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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