Skip to content

Commit 41c44b9

Browse files
committed
fix(webapp): gate the watch maintenance cron on the agent being configured
1 parent e180df0 commit 41c44b9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/webapp/app/v3/commonWorker.server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ function initializeWorker() {
170170
"dashboardAgent.watchMaintenance": {
171171
schema: CronSchema,
172172
visibilityTimeoutMs: 60_000 * 5,
173-
cron: "*/5 * * * *",
174-
jitterInMs: 30_000,
173+
...(dashboardAgentConfigured ? { cron: "*/5 * * * *", jitterInMs: 30_000 } : {}),
175174
retry: {
176175
maxAttempts: 1,
177176
},

0 commit comments

Comments
 (0)