-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_local.example.php
More file actions
50 lines (44 loc) · 1.59 KB
/
Copy pathapp_local.example.php
File metadata and controls
50 lines (44 loc) · 1.59 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
<?php
/**
* BatchQueue Plugin Configuration
*
* Copy this file to your app's config/app_local.php and configure as needed.
*/
return [
'BatchQueue' => [
// Storage backend: 'sql' or 'redis'
'storage' => env('BATCH_QUEUE_STORAGE', 'sql'),
// SQL storage configuration
'sql' => [
'connection' => env('BATCH_QUEUE_SQL_CONNECTION', 'default'),
],
// Redis storage configuration
'redis' => [
'host' => env('BATCH_QUEUE_REDIS_HOST', '127.0.0.1'),
'port' => (int)env('BATCH_QUEUE_REDIS_PORT', 6379),
'timeout' => (float)env('BATCH_QUEUE_REDIS_TIMEOUT', 0.0),
'read_timeout' => (float)env('BATCH_QUEUE_REDIS_READ_TIMEOUT', 0.0),
'persistent' => env('BATCH_QUEUE_REDIS_PERSISTENT', false),
'password' => env('BATCH_QUEUE_REDIS_PASSWORD', null),
'database' => (int)env('BATCH_QUEUE_REDIS_DATABASE', 0),
'prefix' => env('BATCH_QUEUE_REDIS_PREFIX', 'batch:'),
'ttl' => (int)env('BATCH_QUEUE_REDIS_TTL', 86400), // 24 hours
],
// Queue configuration
'queue' => [
'name' => env('BATCH_QUEUE_NAME', 'batch'),
],
// Default batch options
'defaults' => [
'fail_on_first_error' => false,
'max_retries' => 3,
'timeout' => 3600, // 1 hour
],
// Cleanup configuration
'cleanup' => [
'enabled' => true,
'older_than_days' => 7,
'run_interval' => 'daily', // daily, weekly, monthly
],
],
];