Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/queue.php
7382 views
1
<?php
2
3
return [
4
/*
5
|--------------------------------------------------------------------------
6
| Default Queue Connection Name
7
|--------------------------------------------------------------------------
8
|
9
| Laravel's queue supports a variety of backends via a single, unified
10
| API, giving you convenient access to each backend using identical
11
| syntax for each. The default queue connection is defined below.
12
|
13
*/
14
15
'default' => env('QUEUE_CONNECTION', env('QUEUE_DRIVER', 'redis')),
16
17
/*
18
|--------------------------------------------------------------------------
19
| Queue Connections
20
|--------------------------------------------------------------------------
21
|
22
| Here you may configure the connection options for every queue backend
23
| used by your application. An example configuration is provided for
24
| each backend supported by Laravel. You're also free to add more.
25
|
26
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
27
|
28
*/
29
30
'connections' => [
31
'sync' => [
32
'driver' => 'sync',
33
],
34
35
'database' => [
36
'driver' => 'database',
37
'connection' => env('DB_QUEUE_CONNECTION'),
38
'table' => env('DB_QUEUE_TABLE', 'jobs'),
39
'queue' => env('DB_QUEUE', 'standard'),
40
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
41
'after_commit' => false,
42
],
43
44
'beanstalkd' => [
45
'driver' => 'beanstalkd',
46
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
47
'queue' => env('BEANSTALKD_QUEUE', 'default'),
48
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
49
'block_for' => 0,
50
'after_commit' => false,
51
],
52
53
'sqs' => [
54
'driver' => 'sqs',
55
'key' => env('AWS_ACCESS_KEY_ID'),
56
'secret' => env('AWS_SECRET_ACCESS_KEY'),
57
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
58
'queue' => env('SQS_QUEUE', 'default'),
59
'suffix' => env('SQS_SUFFIX'),
60
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
61
'after_commit' => false,
62
],
63
64
'redis' => [
65
'driver' => 'redis',
66
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
67
'queue' => env('REDIS_QUEUE', env('QUEUE_STANDARD', 'standard')),
68
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
69
'block_for' => null,
70
'after_commit' => false,
71
],
72
],
73
74
/*
75
|--------------------------------------------------------------------------
76
| Failed Queue Jobs
77
|--------------------------------------------------------------------------
78
|
79
| These options configure the behavior of failed queue job logging so you
80
| can control how and where failed jobs are stored. Laravel ships with
81
| support for storing failed jobs in a simple file or in a database.
82
|
83
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
84
|
85
*/
86
87
'failed' => [
88
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
89
'database' => env('DB_CONNECTION', 'mysql'),
90
'table' => 'failed_jobs',
91
],
92
];
93
94