Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new configuration for queues #198

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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