chore: test deploy snapshot
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
||||
} from '../services/git-service.js';
|
||||
import { progressBoardPostAutomationByPlanResult } from '../services/board-service.js';
|
||||
import { registerDuePlanScheduledTasks } from '../services/plan-schedule-service.js';
|
||||
import { isCurrentWorkServerSlotActive } from '../services/work-server-slot-service.js';
|
||||
|
||||
const STREAM_CAPTURE_LIMIT = 256 * 1024;
|
||||
const FIRST_PROGRESS_NOTIFICATION_MS = 60_000;
|
||||
@@ -857,6 +858,11 @@ export class PlanWorker {
|
||||
this.running = true;
|
||||
|
||||
try {
|
||||
if (!(await isCurrentWorkServerSlotActive())) {
|
||||
this.logger.info({ workerId: this.workerId }, 'Plan worker skipped on inactive work-server slot');
|
||||
return;
|
||||
}
|
||||
|
||||
const env = getEnv();
|
||||
const appConfig = await getAppConfigSnapshot();
|
||||
const autoRefreshEnabled = appConfig.automation?.autoRefreshEnabled ?? true;
|
||||
|
||||
Reference in New Issue
Block a user