Reliable scheduled workflows with the n8n durable scheduler

The n8n durable scheduler stores schedule state in the database so Schedule Trigger runs can survive restarts and be handled predictably after downtime. This page explains the behavior, the configuration choices, the multi-main boundary and what to confirm before you depend on it.

On this page

What the n8n durable scheduler changes for scheduled workflows

The durable scheduler stores schedule state for Schedule Trigger workflows in the n8n database, so a due run is tracked in shared storage and can be checked after a restart. For a team whose scheduled workflows drive billing, reporting or data sync, the main concern is whether a run was missed or started twice after the process came back. A workflow that charges customers or pushes records to a warehouse needs a clear answer to which runs already started before the restart. Before you rely on this, test how your n8n version records a run and whether a restart can trigger the same run again.

The in-memory scheduler keeps its timers inside the running process. When the process stops, those timers are lost, and on startup the process rebuilds them from the workflow definitions. In that model, what happens to a run that fell due during downtime depends on how that version handles it, and the run may leave little trace. Durable mode moves the schedule state into the database, which makes late runs after downtime visible and lets your team set a handling policy. Confirm for your version whether a run due during downtime executes late or is skipped, how the execution appears in the execution list, and which internal system tasks also run in durable mode. Keep the in-memory scheduler for workflows where a missed run causes no harm, such as a cache refresh.

Scheduled triggers run on the main instance, and the n8n queue mode documentation states that multi-main setup, which runs several main instances for high availability, is restricted to Enterprise self-hosted deployments. Teams on the Community edition or n8n Cloud therefore plan around a single main instance. You have two realistic paths: a single main with durable scheduling, a restart runbook and monitoring, or an Enterprise multi-main design with leader handover. Ask your n8n contact or check the release notes for the leadership behavior in your version. Then run a test in a copy of production: stop the main instance during a scheduled run, restart it, and compare the execution history against the expected schedule. The n8n queue mode documentation is the starting point for the deployment details.

Durable and in-memory scheduler options compared

This table compares the in-memory and durable schedulers for Schedule Trigger behavior across restarts, late runs, multi-main leadership, system tasks and visibility. Read each row against the n8n version you run, because exact setting names and defaults must be confirmed in the n8n docs for that release. The main takeaway is that durable mode matters most where a missed or duplicated scheduled run has a business cost.

AspectIn-memory schedulerDurable scheduler
Restart behaviorSchedule timing is held in process memory, so a restart depends on the instance re-arming its triggers on startup.Schedule state is kept in the database, so due runs can be tracked across a restart. Confirm the exact recovery behavior for your version.
Late runs after downtimeOccurrences missed while the instance is down are generally not replayed. Confirm this for your version before relying on it.The design aims to catch up on missed occurrences. Confirm whether late runs fire immediately, in sequence, or are skipped, and any cap on catch-up.
Multi-main supportEach main instance tracks its own timers, so confirm how duplicate triggers are prevented before running several mains.A leader is elected so scheduled triggers run once. Multi-main itself is limited to Enterprise self-hosted deployments.
System tasksBackground system tasks run in the same process and stop when it stops.Some system tasks can run in durable mode. Confirm which tasks are covered and how they are enabled in your version.
Database loadAdds little database traffic for scheduling itself.Adds writes to the database for schedule state. Size database capacity and connection pools with this in mind.
Operational visibilityState lives mainly in process logs, so troubleshooting relies on log review and restart history.State can be inspected in the database and monitored. Confirm the tables, log messages and metrics available in your version.
Fits best whenA single instance runs non-critical schedules where a missed run is acceptable and simple operations are preferred.Schedules must survive restarts, run in a high availability setup, or carry audit or business impact if missed or duplicated.

Setting up durable schedules on a self-hosted instance

This sequence takes a self-hosted n8n instance from version check to a verified Schedule Trigger that keeps its schedule across restarts, with each step closed by a check you can repeat.

  1. Confirm version, edition and license fit

    The platform engineer records the exact n8n version and edition in use, then confirms that the deployment is self-hosted and that the features needed for the change are included in the plan. Durable scheduling is a setting you change within your own instance, so the check is a written record of the version string and the edition, reviewed against your license terms and the release notes for that version. Confirm the setting name and its default in the release notes and the queue mode docs before you change anything, because naming can differ between releases. Done when the version, edition and setting name are recorded in your change ticket.

  2. Document the database and queue mode layout

    The engineer writes down the current topology: which database holds n8n data, whether queue mode is enabled, how many main and worker processes run, and which processes handle webhooks. In queue mode, the main instance receives triggers and passes executions through Redis to workers that read and write workflow data in PostgreSQL, so every process must point at the same database and broker. Confirm each process has its own copy of the configuration and that the encryption key is identical across main, worker and webhook processes, since they need it to read stored credentials. Done when a single diagram or table lists every process, its role and the database and Redis endpoints it uses.

  3. Verify the encryption key matches everywhere

    Compare the encryption key on the main instance with the key on every worker and webhook processor. In queue mode these must be identical, or workers fail to decrypt credentials that a schedule-driven workflow depends on. Check the key through your secrets manager or the configuration source, not by printing it into logs or tickets. Confirm the key handling rule against the queue mode documentation. Done when you can show that every process reads the key from the same source and a test credential decrypts on a worker.

  4. Enable the durable scheduler setting

    The platform engineer sets the durable scheduler configuration on the main instance, following the setting name confirmed in the queue mode documentation for your version. Apply the change through your normal deployment path, such as a configuration file or environment variable, and restart the process so the change takes effect. Keep the previous configuration available so you can roll back. Done when the instance starts cleanly and the logs or administration view show the scheduler running in durable mode.

  5. Create a test Schedule Trigger workflow

    Build a small workflow with a Schedule Trigger set to fire at a short, known interval and a single harmless step, such as writing a timestamp to a test table or log. Use a test database or a dedicated test project so the workflow cannot affect production data. Activate the workflow and let it run for a few cycles. Done when the execution history shows the expected runs at the expected times, with each run recorded as one execution of the whole workflow.

  6. Confirm the schedule survives a restart

    Restart the main process while the test workflow is active, then check that the workflow is still active and that the schedule resumes without a manual reactivation. Review the execution history for runs that were due during the restart and note how n8n recorded them. This check is the core of durable behavior, so run it at least once in a controlled window and keep the timestamps. Done when the workflow resumes on its own after the restart and the record shows the schedule was retained.

  7. Record the test and set up monitoring

    Write up the test: version, settings applied, restart timestamps, observed behavior of missed runs and the owner of the change. Add alerts or dashboard checks for scheduled workflow failures and for the main process going down, so a stalled schedule is noticed. Repeat the restart check after each upgrade or configuration change. Done when the test record is stored with your change documentation and the monitoring is confirmed to fire on a deliberate failure.

Schedule state passes between main, Redis, workers and PostgreSQL, with leadership decided only in multi-main

The diagram starts at a restart of the main instance, which is the point where schedule state must be read back from PostgreSQL for runs to survive downtime. The main instance stores schedule state in the database and queues executions through Redis to the worker pool, and workers read and write workflow data in PostgreSQL. The second main instance and the leadership step appear only in the Enterprise-only multi-main path. Check which main instance holds leadership and confirm restart behavior in your n8n version before relying on it.

Schedule state and execution flow in queue mode, with the Enterprise-only multi-main leadership step.

Behaviors to test before relying on scheduled runs

Schedule Trigger behavior changes once the durable scheduler stores run state in the database. The cards below describe the behaviors worth testing on your own instance before a schedule carries business work, and what the execution list and logs should show.

Run due during a restart

Set a Schedule Trigger to fire within a few minutes, then restart the n8n main process just before the run is due. Open the execution list after the restart and confirm one execution exists for that slot, with a start time close to the scheduled time. Check the logs for scheduler startup messages and any errors about the trigger. Confirm the expected result against the n8n docs for your version, since the exact recovery behavior depends on the release you run.

Queue mode docs

Run missed during downtime

Stop the instance across a scheduled time, then start it again. Look in the execution list for a run tied to the missed slot and note whether it appears once, several times, or not at all. Record the start delay and whether the workflow received the scheduled timestamp or the actual start time. Decide in advance whether a late run is acceptable for each workflow, because a workflow that sends notices or moves money may need a guard step that checks the expected time window.

Schedule edit while the instance is down

Change the cron expression or interval of an active schedule while the main process is stopped, then start it. Confirm which timing the trigger uses from the first run after startup and that the previous schedule does not keep firing. Repeat the test with an edit made while the instance runs. Compare the two results in the logs and the execution list. Edits are a common source of surprise runs during maintenance windows, so include this step in every change procedure.

Duplicate-run check across restarts

Run several restarts within one scheduled slot and count the executions created for that slot. The goal is one execution per slot, with no duplicate created when the process comes back up. Use a workflow that writes a unique key to an external system, so duplicates are visible outside n8n as well. Any workflow that is not idempotent should add its own deduplication check, regardless of what the scheduler does.

Timezone and daylight saving transition

Set the instance and workflow timezone explicitly, then test a schedule around a daylight saving change in that zone, including the hour that repeats or is skipped. Check that runs land at the intended local time before and after the change, and that the timestamps in the execution list match your expectations. Mismatches here usually come from a server clock or container timezone that differs from the workflow setting, so verify both.

Leadership handover in multi-main setup

If you plan a multi-main deployment, stop the instance that currently holds scheduling leadership and confirm that another main instance takes over without firing duplicate runs. Note the handover delay in the logs and check that no slot is skipped beyond what your business rules allow. Multi-main is limited to Enterprise self-hosted deployments, so confirm your license covers it before building this test into your plan.

Queue mode docs

How multi-main leadership affects who runs a schedule

Multi-main setup decides which main instance is responsible for triggers, and that responsibility determines which process fires a Schedule Trigger. Multi-main runs several main instances for high availability, and n8n restricts it to Enterprise self-hosted deployments. It is not available in the Community edition or on n8n Cloud. If your organization is on a lower tier, the question of which main owns a schedule does not arise, because a single main instance handles all triggers. Confirm your edition and license before planning any design that assumes a second main.

In plain terms, leadership means that one main instance at a time takes ownership of scheduled work, and the others wait to take over if it fails. Before go-live, ask your n8n contact or check the vendor documentation for how leader election works, how long a standby waits before it takes over, and whether a schedule can fire twice during the handover. The timing of failover is the detail most likely to affect a business process, so do not rely on general assumptions about high availability. Record the answers in your runbook next to the durable scheduler settings that apply to your version.

Test failover before relying on it. Stop the instance that currently holds leadership in a non-production environment, confirm which main takes over, and check that a Schedule Trigger still fires on time and does not run twice. Then check the execution list for gaps or duplicates and confirm that workflows reading from the database resume cleanly. Repeat the test after each n8n upgrade, because leadership behavior can change between releases. Your monitoring should alert on missed or duplicated scheduled runs, not only on whether the process is up.

System tasks in durable mode by deployment shape

On a single main instance, the scheduler, Schedule Trigger registrations and background system tasks all run in one process. There is no question of which instance owns a task, so the operator's main concern is resource contention: the same process that runs background work also executes production workflows.

  • Ownership is simple: every category of system task runs in the main process, so there is no leader or failover logic to reason about.
  • Restart behavior is the main test: confirm how a scheduled run missed during a planned restart is recovered, using the late-run behavior your version documents.
  • Shared resources: background work and workflow executions draw on the same memory and CPU, so watch heap use during scheduled bursts.
  • Database dependency: durable schedules depend on the database being reachable when they fire, so rehearse a short database outage on a staging copy.
  • Upgrade checks: after each upgrade, confirm which system tasks moved to durable mode and whether any behavior changed for your workflows.

Check the current list of system tasks and their durable behavior in the n8n release notes for your exact version before you rely on them.

Limits and what to confirm in your environment

The durable scheduler changes how Schedule Trigger runs behave, so the checks below belong in your design review before go-live. Each card names a limit or dependency and the question to put to n8n or to test in your own environment.

Edition and license eligibility

Confirm which edition and plan your instance runs before you plan around scheduler behavior. The n8n pricing page lists the Community edition as free and self-hosted, and n8n states that multi-main setup is limited to Enterprise self-hosted deployments. Ask n8n whether the durable scheduler behavior you depend on is available in your edition, and check whether any files you touch carry the .ee marker, since those fall under the Enterprise License rather than the Sustainable Use License.

n8n pricing

Database and version requirements

Durable scheduling depends on the database that stores schedule state, so confirm which database types and versions n8n supports for your release. n8n ships minor releases roughly weekly and uses semantic versioning, so pin the version you test and retest after each upgrade. Ask n8n for the exact supported database list for your target release and run a restart test on the same engine you will use in production.

n8n release notes

Schedule behavior across upgrades

Schedules persisted by one version may be read differently by the next, which can change run timing or duplicate a run. Before a planned upgrade, record the next run time of every critical schedule, apply the upgrade in a staging copy of your database, and compare the results. Confirm with n8n how schedule records migrate between versions and whether a rollback restores the earlier scheduling behavior.

Clock and timezone drift between hosts

Durable runs are tied to stored timestamps, so differences in host clocks or configured timezones can shift when a schedule fires. In multi-host setups, confirm that every main and worker synchronizes time with a trusted source, and that the instance timezone setting matches what your business expects. Test a schedule that crosses a daylight saving change and compare its logged run times against the expected local time.

Interaction with pruning and log retention

Pruning deletes old execution records, and the durable scheduler may rely on records you expect to be removed. Check whether pruning can remove the history a late-run catch-up or a restart recovery needs, and set retention so the window covers your longest expected outage. Confirm with n8n which tables the scheduler reads, and make sure your log retention outlasts the audit period your team needs for scheduled jobs.

Whether the in-memory scheduler remains the default

Ask n8n whether the durable scheduler is the default for your release or an opt-in setting, and whether the in-memory scheduler still works after you enable the durable mode. Keep the in-memory scheduler only where a missed run is acceptable and you have a documented restart procedure. Record the chosen mode in your change records so an upgrade does not silently switch it.

Questions teams ask before relying on the durable scheduler

Can our team turn on the durable scheduler without outside help?

Often yes on a single instance, if your team already runs n8n in production. Enabling the option is the small part. Before you change anything, confirm how the option behaves on your exact version in the n8n release notes and self-hosting documentation. Your team also needs to know which instances run Schedule Triggers, how they share the database, and how a restart is tested. Queue mode adds Redis, shared encryption keys and worker coordination, and multi-main needs an Enterprise license. The usual gap for internal teams is not the setting itself but the restart, failover and upgrade testing and the runbook that records what was tested.

How much effort does a durable scheduler rollout take?

No duration is published for this change, so ask for one based on a written scope. The main drivers are the number of scheduled workflows and their owners, whether the instance runs in queue mode, how many main instances are involved, how many schedules are business critical, and whether a non-production environment is available for restart tests. One-time work covers design, configuration, failure testing, documentation and handover. Recurring work covers monitoring scheduled runs, reviewing missed or duplicate runs after incidents, and testing each upgrade. A quote should show these items separately so you can see what recurs and what does not.

Is multi-main required for reliable scheduled runs?

No. Multi-main is a high availability setup that runs several main instances, and n8n restricts it to Enterprise self-hosted deployments. Whether a single main instance is enough depends on how much delay or missed scheduling your business accepts during a restart or host failure. It also depends on how quickly your process manager, container platform or orchestrator restarts the service. Test these cases on your own version: stop the main process during a scheduled window, restart it, and check the run history, timing and duplicates. The results tell you whether multi-main is worth its license and operating cost for your schedules.

When should a team keep the in-memory scheduler?

Keep the in-memory scheduler while your team cannot yet test restarts properly, or while the schedules are low stakes and a late or repeated run causes little harm. It also makes sense during a staged rollout, when you want to compare timing between the two modes on the same workflows. Move critical schedules first, then the rest. Record which mode each workflow runs under, and set a review date so the temporary choice does not become permanent. Before switching a production schedule, confirm the expected behavior for your version in the n8n documentation and check it with a test run.

What happens to existing schedules when we upgrade n8n?

Confirm the answer for your target version in the n8n release notes before you upgrade, because schedule behavior can change between releases. n8n uses semantic versioning and ships minor releases roughly weekly, so a team on an older build can face several changes at once. After any upgrade, check each Schedule Trigger for its next run time, timezone, active state and whether runs fire twice during a rolling restart. Test the upgrade on a copy of your database first, and keep a documented rollback path. Upgrade testing is one of the recurring costs to plan for, not a one-time task.

What would a partner do that our internal team cannot?

A partner brings a written scope, fixed deliverables and an outside test pass, which is useful when an internal team has no time to test failure cases. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your infrastructure. For scheduled workflows, that can mean an inventory of schedules and owners, configuration in your environment, restart and failover tests, a runbook, an upgrade test plan and, if you want it, a retainer for ongoing monitoring and upgrades. Your team keeps ownership of the business logic, the approval of schedule changes and the final acceptance of results.

What does our team need to provide during the work?

The work needs people and access more than budget. Provide access to the n8n hosts, the database and the process or container configuration in a test environment, plus a production change window for the final switch. Give the team a list of scheduled workflows with named owners and the business impact of a late or missed run. If you run queue mode, provide the Redis and worker details. Assign someone to approve schedule changes and someone to run the restart tests and review their output. Confirm your license status early, because some options depend on it.

Does the durable scheduler affect licensing or compliance evidence?

It can, so check both before you rely on it. n8n's Sustainable Use License does not cover files with .ee in their name or directory, which need a valid n8n Enterprise License. Confirm whether the scheduler code path you depend on sits in such files for your version, and whether multi-main falls under the same rule. For compliance, a schedule that runs late, twice or not at all can affect records you must keep. Keep test results, configuration history and run logs as evidence. DeployOpen prepares those systems and records for assessment, but independent auditors and certification bodies issue any audit report or certification.

How DeployOpen scopes and supports n8n scheduling work

DeployOpen plans, builds and hands over n8n scheduling for infrastructure you control, starting with a written inventory of every Schedule Trigger and the outcomes each one must protect. The work covers the scheduler mode, database, queue setup and runbooks, so your team can operate scheduled workflows after handover.

How we scope

  • Inventory every Schedule Trigger and record what each run must do if it is missed, delayed or repeated.
  • Confirm your n8n edition and plan, since multi-main leadership requires an Enterprise self-hosted deployment.
  • Agree in writing which workflows move to the durable scheduler, which stay in memory, and what testing proves each choice.

How we build

  • Configure the durable scheduler and run restart tests that confirm scheduled runs survive a process stop.
  • Test late-run behavior after planned downtime, using the catch-up expectations agreed for each workflow.
  • Verify leadership handover on multi-main setups and check system tasks that run in durable mode against your own environment.

How we hand over

  • Document the scheduler settings, database dependencies, and the reasons behind each workflow's scheduling choice.
  • Provide a runbook for restarts, failover checks, and how to confirm which instance holds scheduling leadership.
  • Walk your platform and automation owners through the test results and the monitoring signals they should watch.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, n8n version upgrades and continuous testing are available as a retainer, including retesting schedules after each upgrade.
  • Ask any partner for a written quote tied to this scope, and confirm how upgrades and n8n release changes will be tested in your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.