Skip to content

Commit 5cfd28d

Browse files
Add missing 'after_commit' attribute (laravel#5554)
There's a new `after_commit` config option that isn't in the default config: https://laravel.com/docs/8.x/queues#jobs-and-database-transactions For new projects it may be better to have these defaulted to `true`, but I left it as `false` for now.
1 parent c988335 commit 5cfd28d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/queue.php

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'table' => 'jobs',
4040
'queue' => 'default',
4141
'retry_after' => 90,
42+
'after_commit' => false,
4243
],
4344

4445
'beanstalkd' => [
@@ -47,6 +48,7 @@
4748
'queue' => 'default',
4849
'retry_after' => 90,
4950
'block_for' => 0,
51+
'after_commit' => false,
5052
],
5153

5254
'sqs' => [
@@ -57,6 +59,7 @@
5759
'queue' => env('SQS_QUEUE', 'default'),
5860
'suffix' => env('SQS_SUFFIX'),
5961
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
62+
'after_commit' => false,
6063
],
6164

6265
'redis' => [
@@ -65,6 +68,7 @@
6568
'queue' => env('REDIS_QUEUE', 'default'),
6669
'retry_after' => 90,
6770
'block_for' => null,
71+
'after_commit' => false,
6872
],
6973

7074
],

0 commit comments

Comments
 (0)