Skip to content

Commit 8f67350

Browse files
committed
Document missing configuration keys in config/app.example.php
1 parent d777481 commit 8f67350

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

config/app.example.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
'defaultRequeueTimeout' => 180, // 3 minutes
2727
// Legacy: 'defaultworkertimeout' is deprecated but still supported
2828

29+
// Threshold in seconds: a queue_processes row whose heartbeat (`modified`
30+
// timestamp) is older than this is treated as a dead worker by a
31+
// starting worker and cleaned up. Workers refresh their heartbeat every
32+
// loop, so a row not touched in this window almost certainly belongs to
33+
// a force-killed process. Intentionally much shorter than
34+
// defaultRequeueTimeout (which governs in-flight job requeueing).
35+
'staleHeartbeatThreshold' => 90, // 90 seconds
36+
2937
// minimum time (in seconds) which a task remains in the database before being cleaned up.
3038
'cleanuptimeout' => 2592000, // 30 days
3139

@@ -63,6 +71,18 @@
6371
// set default datasource connection
6472
'connection' => null,
6573

74+
// Multi-connection mode: whitelist of datasource connection names a
75+
// worker / job command may run against. Leave empty (or with fewer than
76+
// 2 entries) to stay in single-connection mode, where the singular
77+
// `connection` above (or 'default') is used. With 2+ entries, the first
78+
// is the default and any --connection passed to the run/job commands
79+
// must appear in this list or a RuntimeException is thrown. The admin
80+
// dashboard also exposes a connection switcher when this has 2+ entries.
81+
'connections' => [
82+
//'default',
83+
//'queue_secondary',
84+
],
85+
6686
// enable Search. requires friendsofcake/search
6787
'isSearchEnabled' => true,
6888

0 commit comments

Comments
 (0)