Repository navigation
Expand file tree
/
Copy pathqueue.php
More file actions
109 lines (95 loc) · 3.77 KB
/
Copy pathqueue.php
File metadata and controls
109 lines (95 loc) · 3.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
'default' => env('QUEUE_CONNECTION', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
// 'database' => [
// 'driver' => 'database',
// 'table' => 'jobs',
// 'queue' => 'default',
// 'retry_after' => 90,
// ],
// 'beanstalkd' => [
// 'driver' => 'beanstalkd',
// 'host' => 'localhost',
// 'queue' => 'default',
// 'retry_after' => 90,
// 'block_for' => 0,
// ],
//
// 'sqs' => [
// 'driver' => 'sqs',
// 'key' => env('AWS_ACCESS_KEY_ID'),
// 'secret' => env('AWS_SECRET_ACCESS_KEY'),
// 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
// 'queue' => env('SQS_QUEUE', 'your-queue-name'),
// 'suffix' => env('SQS_SUFFIX'),
// 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
// ],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
// `retry_after` specifies how many seconds the queue connection should wait before a
// job that is being processed is released back onto the queue. This should be several
// seconds longer than every effective job or worker timeout to prevent jobs from being
// re-attempted by another queue worker before it has finished executing or timed out.
// https://laravel.com/framework/docs/11.x/queues#job-expirations-and-timeouts
'retry_after' => 100,
'block_for' => null,
],
],
/*
|--------------------------------------------------------------------------
| Job Batching
|--------------------------------------------------------------------------
|
| The following options configure the database and table that store job
| batching information. These options can be updated to any database
| connection and table which has been defined by your application.
|
*/
'batching' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'job_batches',
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
'backoff' => explode(',', env('QUEUE_BACKOFF', '')),
];