You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/constructor.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,13 @@ The following configuration options should not normally need to be changed, but
93
93
94
94
How often queue metadata is refreshed in memory.
95
95
96
-
### Backend
96
+
***persistWarnings**, bool, default false
97
+
98
+
If set to true, warnings emitted during monitoring and maintenance (slow queries, queue backlogs, clock skew) will be persisted to the `warning` table in addition to being emitted as events. This enables historical tracking of warnings for debugging and monitoring purposes. See [Events](./events.md#warning) for more details on warning types.
99
+
100
+
***warningRetentionDays**, int
101
+
102
+
When `persistWarnings` is enabled, this option controls automatic cleanup of old warnings. Warnings older than the specified number of days will be deleted during maintenance. If not set, warnings are retained indefinitely. Maximum:365 days.
97
103
98
104
***backend**, string, default `'postgres'`
99
105
@@ -103,13 +109,5 @@ The following configuration options should not normally need to be changed, but
103
109
const boss = new PgBoss({ connectionString, backend: 'cockroachdb' })
104
110
```
105
111
106
-
Based on this setting, the fetch strategy, mutation strategy, schema shape, and numeric coercion may becchanged. See [Database Backends](../database-backends.md#backend-profiles)
112
+
Based on this setting, the fetch strategy, mutation strategy, schema shape, and numeric coercion may bechanged. See [Database Backends](../database-backends.md#backend-profiles)
107
113
for what each backend enables and the [compatibility matrix](../database-backends.md#database-compatibility).
108
-
109
-
***persistWarnings**, bool, default false
110
-
111
-
If set to true, warnings emitted during monitoring and maintenance (slow queries, queue backlogs, clock skew) will be persisted to the `warning` table in addition to being emitted as events. This enables historical tracking of warnings for debugging and monitoring purposes. See [Events](./events.md#warning) for more details on warning types.
112
-
113
-
***warningRetentionDays**, int
114
-
115
-
When `persistWarnings` is enabled, this option controls automatic cleanup of old warnings. Warnings older than the specified number of days will be deleted during maintenance. If not set, warnings are retained indefinitely. Maximum:365 days.
0 commit comments