mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 21:49:36 +02:00
Behind N8N_SCHEDULER_AGENT_TASKS_ENABLED (requires N8N_SCHEDULER_ENABLED), agent scheduled tasks gain a durable path: a registrar keeps scheduled_job rows in step with published, enabled task snapshots, and a task handler starts runs by taking the existing run lock, kicking the run off in the background, and reporting dispatch within the occurrence lease. Startup reconciliation backfills jobs when the flag turns on and deletes them when it is off, so no pending occurrences accumulate behind an unregistered handler. Missed occurrences use the skip misfire policy and a held run lock skips the tick, both matching the in-memory scheduler. Legacy scheduling is untouched; routing lifecycle events by flag lands separately. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| templates | ||
| test | ||
| AGENTS.md | ||
| BREAKING-CHANGES.md | ||
| eslint.config.mjs | ||
| nodemon.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.config.base.ts | ||
| vitest.config.integration.testcontainers.ts | ||
| vitest.config.integration.ts | ||
| vitest.config.migration.testcontainers.ts | ||
| vitest.config.migration.ts | ||
| vitest.config.ts | ||
| vitest.tsc-entity-transform.ts | ||
| vitest.workspace-externals.ts | ||