-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
queue-monitor.php
60 lines (45 loc) · 1.67 KB
/
queue-monitor.php
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
<?php
return [
// Set the table to be used for monitoring data.
'table' => 'queue_monitor',
'connection' => null,
/*
* Set the model used for monitoring.
* If using a custom model, be sure to implement the
* romanzipp\QueueMonitor\Models\Contracts\MonitorContract
* interface or extend the base model.
*/
'model' => \romanzipp\QueueMonitor\Models\Monitor::class,
// Determined if the queued jobs should be monitored
'monitor_queued_jobs' => true,
// Specify the max character length to use for storing exception backtraces.
'db_max_length_exception' => 4294967295,
'db_max_length_exception_message' => 65535,
// The optional UI settings.
'ui' => [
// Enable the UI
'enabled' => false,
// Accepts route group configuration
'route' => [
'prefix' => 'jobs',
// 'middleware' => [],
],
// Set the monitored jobs count to be displayed per page.
'per_page' => 35,
// Show custom data stored on model
'show_custom_data' => false,
// Allow the deletion of single monitor items.
'allow_deletion' => true,
// Allow retry for a single failed monitor item.
'allow_retry' => true,
// Allow purging all monitor entries.
'allow_purge' => true,
'show_metrics' => true,
// Time frame used to calculate metrics values (in days).
'metrics_time_frame' => 14,
// The interval before refreshing the dashboard (in seconds).
'refresh_interval' => null,
// Order the queued but not started jobs first
'order_queued_first' => false,
],
];