mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-31 05:10:14 +08:00
feat(hermes): add kanban worker log controls
This commit is contained in:
@@ -3800,6 +3800,22 @@ export function buildHermesKanbanConfigValues(config = {}) {
|
||||
1000,
|
||||
false,
|
||||
),
|
||||
workerLogRotateBytes: parseHermesInteger(
|
||||
kanban.worker_log_rotate_bytes,
|
||||
'kanban.worker_log_rotate_bytes',
|
||||
2097152,
|
||||
1,
|
||||
1073741824,
|
||||
false,
|
||||
),
|
||||
workerLogBackupCount: parseHermesInteger(
|
||||
kanban.worker_log_backup_count,
|
||||
'kanban.worker_log_backup_count',
|
||||
1,
|
||||
0,
|
||||
100,
|
||||
false,
|
||||
),
|
||||
dispatchStaleTimeoutSeconds: parseHermesInteger(
|
||||
kanban.dispatch_stale_timeout_seconds,
|
||||
'kanban.dispatch_stale_timeout_seconds',
|
||||
@@ -3864,6 +3880,22 @@ export function mergeHermesKanbanConfig(config = {}, form = {}) {
|
||||
1000,
|
||||
true,
|
||||
)
|
||||
kanban.worker_log_rotate_bytes = parseHermesInteger(
|
||||
Object.hasOwn(form, 'workerLogRotateBytes') ? form.workerLogRotateBytes : currentValues.workerLogRotateBytes,
|
||||
'kanban.worker_log_rotate_bytes',
|
||||
2097152,
|
||||
1,
|
||||
1073741824,
|
||||
true,
|
||||
)
|
||||
kanban.worker_log_backup_count = parseHermesInteger(
|
||||
Object.hasOwn(form, 'workerLogBackupCount') ? form.workerLogBackupCount : currentValues.workerLogBackupCount,
|
||||
'kanban.worker_log_backup_count',
|
||||
1,
|
||||
0,
|
||||
100,
|
||||
true,
|
||||
)
|
||||
kanban.dispatch_stale_timeout_seconds = parseHermesInteger(
|
||||
Object.hasOwn(form, 'dispatchStaleTimeoutSeconds') ? form.dispatchStaleTimeoutSeconds : currentValues.dispatchStaleTimeoutSeconds,
|
||||
'kanban.dispatch_stale_timeout_seconds',
|
||||
|
||||
Reference in New Issue
Block a user