Why Odoo scheduled actions run late or never
When invoices are not sent, stock is not recalculated or outgoing emails sit in the queue, the cause is often not the feature itself but the scheduled action that should trigger it. In Odoo, scheduled actions are cron jobs stored as records in the database, and they only run when a cron worker picks them up. If no worker is running, or the workers are busy, blocked or pointed at the wrong database, the job waits or is skipped without an obvious error on the screen. This applies to self-hosted Community and Enterprise installations alike, because both rely on the same scheduler. Teams usually need this troubleshooting before go-live, after an upgrade that changed job definitions, or after restoring or copying a database to a test environment.
Start by confirming that the cron mechanism is running at all. Check which scheduled actions are active, when each last ran and when it is due next, using the scheduled actions list in developer mode. Then confirm that the Odoo server process actually starts cron workers for the database in question. The number of cron threads is controlled by the max_cron_threads setting in the Odoo configuration file, and the relevant worker and process settings depend on how the server is deployed. Confirm these values in your own environment and against the deployment documentation for your Odoo version, rather than assuming the defaults match your server layout.
Decide early who owns this check. A job that silently stops is easy to miss because the business symptom appears days later, in a customer complaint or a stock count mismatch. Record which scheduled actions matter for your processes, what each one should do and who is alerted if it stops. Treat that list as an input to monitoring and to the go-live checklist, so the first cron failure after a staging copy or upgrade is caught by a person rather than by a customer.
Which cron setup fits which deployment
This table compares four ways to run Odoo scheduled actions: threads inside the multi-process server, dedicated cron workers, cron alongside WSGI workers in a single process, and disabled crons on non-production copies. Read each row for when the option fits, what it trades away, and what to confirm for your Odoo version before you change anything. The main takeaway is that the right choice depends on how much job load you have and how isolated you need web requests to be from background work.
| Option | When it fits | Trade-off | What to confirm for your version |
|---|---|---|---|
| Integrated cron threads (multi-process server) | Small databases with light scheduled work and a single Odoo server | Cron threads share the host and database pool with web workers, so long jobs can slow users down | How the cron thread limit is named and defaulted in your release, and whether your server runs in multi-process mode |
| Dedicated cron worker processes | Busy databases where scheduled actions must not compete with web requests | Extra processes to deploy, monitor and restart, and more database connections to plan for | How your installation starts cron-only processes and which options it expects for them |
| Cron alongside WSGI workers in a single process | Development or a single-user test instance where simplicity matters more than isolation | No separation between web and background load, and a crash affects both | Whether your version runs cron in the same process as the web server in this mode and how it logs job runs |
| Crons disabled on non-production copies | Staging, training and test databases copied from production | Scheduled work that a test needs will not run until someone re-enables it deliberately | Which scheduled actions your neutralization step turns off and which ones your test scenario requires |
| Restart behavior | Any setup where you restart Odoo for updates or memory recovery | A restart interrupts running jobs, so long jobs need to be idempotent or split into batches | How your version records a job that was interrupted and whether it resumes or reruns it |
| Monitoring job execution | All setups, especially where jobs run late or never | Without a clear view of last run and duration, late jobs look like working jobs | Which logs or database records show job start, finish and errors in your version |
Diagnosing cron problems by symptom
A scheduled action that sits idle for days usually means no worker is picking it up, or the action itself is switched off. Start by checking whether the job is active and whether its next execution date stays in the past without moving. Then confirm that a cron worker exists for the database you are inspecting.
- Cron disabled or neutralized: Databases copied from production with neutralization often have scheduled actions switched off, so nothing runs even when the server is healthy.
- Zero cron threads: If the cron thread count is set to zero, no cron worker starts. Confirm the value in the configuration file or the command line options that launched the process.
- No cron process under WSGI: On a multi-process deployment, cron workers run as separate processes. If that process was never started, or was not restarted with the web service, jobs have no executor.
- Wrong database: The worker may be polling a different database than the one you are inspecting, which happens when several databases share one server.
Check the active flag and next execution date on the job, then search the server log for cron worker start lines that name the database.
Jobs that run on time for a while, then pile up and fire together, usually point to a shared limit being hit rather than a missing worker. When the cron thread pool is busy, due jobs wait in the queue, and once a slot frees up several of them run in quick succession. The pattern in the log is more useful than any single entry.
- Saturated cron threads: If max_cron_threads is too low for the number of scheduled actions, the pool stays full and due jobs wait for a free slot.
- One slow job holding a slot: A long-running action keeps its thread busy, which delays every other job assigned to the same pool.
- Many jobs on the same schedule: Actions set to run at the same minute, such as midnight, all become due together and compete for the same threads.
- Repeated worker restarts: Restarts of the server or cron process reset timing and can release a backlog of overdue jobs at once.
Compare the next execution dates of overdue jobs with the busy periods in the log, and count how many actions share each scheduled time. Stagger the schedules only after you confirm which jobs are waiting.
When one specific job fails every time, the problem sits inside that job's code or data, not in the scheduler as a whole. Odoo applies a time limit to cron work, and a job that processes too many records in a single pass can exceed it before it finishes. The failure usually leaves a traceback that names the job, which is the first thing to find.
- Long job hitting the time limit: The job runs past the cron time limit configured for the server. Confirm the setting name and its default in the Odoo configuration reference for your version before changing it.
- Too many records in one transaction: A job that loads and writes thousands of records in one pass can run long and hold locks. Check how many records match its domain.
- Lock contention on busy tables: A job that updates records users are editing at the same time may wait on locks and then time out.
- Slow external calls: Actions that call a third-party service without a sensible timeout can stall until the time limit stops them.
Find the traceback for the job name in the log, count the records its domain matches, and run the same logic manually from a shell with timing enabled to see where the time goes.
Jobs that worked on production and went quiet on a restored or duplicated database are usually affected by the copy process itself. Duplicating with neutralization is designed to stop outbound activity in test copies, and that includes scheduled actions. A restore can also bring back job records whose owner or configuration no longer matches the server.
- Neutralization switched jobs off: Test copies created with neutralization typically disable scheduled actions. Check the active flag on the jobs before assuming a fault.
- Inactive owner user: A job that runs as a user who was archived or not restored may fail on every run. Confirm the owner on the job record.
- Server still pointed at the old database: After a restore, the worker may still be bound to a database list or filter that does not include the new name.
- Missing filestore or attachments: Jobs that read attachments fail if the filestore was not restored alongside the database.
Compare the active state and owner of the jobs with the production database, then read the first log entries after the restored database starts. Re-enable only the jobs a test needs, as described in the staging copy guidance.
Duplicate executions appear when two processes both believe they should run the cron work for the same database. This is easy to create by accident in a multi-node setup, a container scale-out, or a failover that leaves the old node running. The result is the same job writing the same records twice, sometimes with email or external calls repeated.
- Two nodes with cron enabled: Each web node that runs cron against the same database will execute the same scheduled actions. Confirm which nodes are meant to run cron.
- Leftover process after failover: A node that was supposed to stop cron work may keep running it after a recovery, so check the process list on every host.
- Scaled containers: A container definition scaled above one replica can start several cron workers without anyone noticing.
- Manual and service-manager starts: A process started by hand alongside a service unit creates a second worker.
List the Odoo processes on each node and check which hosts log cron lines for the same job at the same time. Confirm the intended multi-node layout in the Odoo deployment documentation for your version, and make sure any job that sends email or calls external systems can tolerate a repeat.
Setting up cron execution and checks on a self-hosted server
This sequence confirms that Odoo's cron workers are configured, running and scheduling correctly on a self-hosted server before anyone trusts a scheduled action in production. It ends with a verified test job and a database confirmed as live rather than neutralized.
Confirm the process model and cron thread setting
The administrator who owns the Odoo configuration file reviews how the server starts, whether it runs in a multi-process (workers) setup or as a single process, and what value is set for max_cron_threads. Note the workers count, the cron thread count and the file path in use, because a single-process setup and a multi-process setup handle cron differently. Confirm this against the Odoo deployment documentation for your installation method. The step is done when the team can state, in writing, the process model and the cron thread count that the running service actually uses.
Verify cron workers start with the service
Restart the Odoo service in a maintenance window, then check the service manager status and the startup log for lines that show cron worker processes starting alongside the HTTP workers. Under a WSGI setup, confirm that the web server or process manager launches the Odoo process with the same configuration file, since a cron process that is not started will leave scheduled actions silent without an obvious error. The step is done when the logs show cron workers initialized after the most recent restart.
Check that scheduled actions are active and dated correctly
In developer mode, open the scheduled actions list under Settings and Technical, then check each job that matters for the business. Confirm that the active flag is set, that the interval and the next execution date are as expected, and that no job is stuck with a next execution date far in the past. Record any job whose date does not advance after a cron cycle. The step is done when every business-critical job is active and its next execution date moves forward on schedule.
Create and run a test scheduled action
On a non-production database, or on a production database with a clearly named and harmless test job, create a scheduled action that writes a single, identifiable line to the server log, such as a message containing the job name and the time. Set a short interval and run it through the normal cron cycle without forcing it manually. Then search the server log for that line. Forcing the job from the interface only proves the code runs, so the step is done only when the line appears from the scheduled cycle itself, and the test job is then deactivated or deleted.
Confirm the database is not neutralized
Check that the database you are monitoring is the live production copy and not a duplicate that has been neutralized. Neutralized copies have scheduled actions switched off on purpose, so a test or training copy will look healthy in the logs while production jobs never run. Ask the team who created the database, whether it was duplicated with neutralization, and whether any cron jobs were re-enabled by hand. The step is done when the team confirms in writing which database is production and that its scheduled actions are not disabled by a neutralization step.
Record the baseline and set a log check
Write down the process model, the cron thread count, the list of business-critical jobs with their intervals, and the log pattern that confirms a cron cycle ran. Ask the operations owner which log destination the server uses and who receives alerts when the pattern stops appearing. This baseline gives the team a reference point for later troubleshooting and for the monitoring checks covered on the logging and monitoring page. The step is done when the baseline is stored with the server documentation and an owner is named for the log check.
Long jobs that hit time limits and how to split them
A scheduled action that runs too long can hold a worker, lock rows other users need, and get cut off before it finishes. The cards below cover the mechanics behind those failures and the design choices that keep long jobs from breaking the rest of the system.
Why long batch jobs block other workers
Each cron job occupies one of the worker slots set by max_cron_threads. A single job that scans millions of records can hold that slot for hours, so other scheduled actions queue behind it and appear to run late. Check the duration of each cron run in the logs and count how many slots are busy at peak time before you add more workers.
Request limits differ from cron limits
Web requests are cut off by the server's request time limit, which is tuned for users waiting on a screen. Cron jobs run in their own worker process and have a separate limit, so a job that works on a web request will fail differently from one that runs on a schedule. Confirm which limit applies to your deployment and set it deliberately rather than inheriting a value meant for interactive use.
Splitting work into committed batches
A job that processes one batch per transaction and commits after each batch keeps its progress when a limit is reached. The next run picks up where the last one stopped. Use a marker field or a saved offset to record progress, and make each batch safe to repeat if a run is interrupted, because a job that restarts from zero may never finish.
Avoiding large locks on busy tables
Updating every row of a busy table in one transaction locks those rows until the commit, which delays sales orders, stock moves and invoices that users are editing. Keep batch sizes small, order updates consistently, and schedule heavy jobs for quiet hours. Look at PostgreSQL lock waits during a run to see whether the job is blocking users.
Moving heavy work to external workers
When a task takes longer than a sensible cron window, a queue-style pattern can move it out of the scheduler. The scheduled action only enqueues small units of work, and separate workers process them with their own retry and monitoring. This design adds components to run and secure, so decide whether the extra moving parts are justified by the workload.
Testing with production-sized data
A job that finishes in seconds on a small test database can run for hours on production volumes. Rehearse long jobs on a staging copy with a realistic row count, measure run time and lock behavior, and record the results before enabling the schedule. A neutralized copy keeps the test safe, but confirm that the scheduled actions you need are re-enabled on it.
How a scheduled action moves from schedule to execution
A scheduled action starts as a row in the Odoo database, which PostgreSQL stores alongside the rest of the data. A cron worker, separate from the web workers that serve users, looks for due rows, claims one, and runs its Python code against the same database. The result is written to the log, and a failure leaves the row in place so the next run can retry it. When a job runs late or never, check each hand-off: whether a cron worker exists and is started, whether it can reach the database, and whether the job's next call date is still in the past.
Web workers edit schedules, while cron workers claim and run due jobs against PostgreSQL.
Security and operational considerations for cron
Scheduled actions are code that runs without a user in the loop, so who can change them, what data they touch and how much database capacity they use all matter. The cards below cover the controls that keep cron work predictable and limit the damage a faulty or malicious job can do.
Scheduled actions run as a configured user
A scheduled action executes with the permissions of the user set on the action, and it can create, write or delete records without anyone signing in. Check which user each action uses and whether that account has more access than the job needs. Review the action's model, code and schedule together, because a small change to the code can touch many records on every run. Record who approved each change.
Limit who edits server actions
Server actions and scheduled action code are executable Python, so anyone who can create or edit them can run arbitrary logic on the server. Restrict these permissions to a small technical group, and keep developer mode and the technical menus off general user roles. Confirm the access rules in your Odoo version, since group names and menu locations change between releases. Route code changes through your normal review and deployment process.
Restrict configuration file and logs
The Odoo configuration file holds the database credentials and the master password, and the log output can reveal record data and job errors. Limit read access to the configuration file to the Odoo service account and administrators, and check that log files are not world readable. Send logs to a location your monitoring team controls. Confirm the defaults for your install method before you rely on them.
Keep neutralized copies from sending
A copy made for testing can still run scheduled actions that send mail, post to chat, or call external APIs with live credentials. Neutralization switches off many of these, but integrations configured in custom code may not be covered. Before enabling crons on a test copy, list each external call and point it at a sink or disable it. Confirm the neutralization behavior for your version with the duplication documentation.
Watch runaway jobs and database connections
A long or looping job holds a database connection and a worker for as long as it runs, which can starve web requests and other crons. Set the number of cron threads with your PostgreSQL connection limit in mind, so that workers do not exhaust the connections the database can serve. Alert on jobs that run longer than their normal duration and on connection counts near the limit. Review the sizing with your database team before adding workers.
How to monitor scheduled action execution
Which log lines show that a scheduled action actually ran?
Odoo's cron runner writes log entries from the worker process when it picks up and finishes a job, so the server log is the first place to look. Search the log for the cron worker's name, the database name and the model or method name of the scheduled action, then check that a start entry and a completion or error entry appear for each run. The exact wording and log level differ between Odoo versions and between debug and production logging settings, so confirm the format for your version by running a known job in a staging copy and reading what the server writes. Do not rely on the job's own success flag alone, because a job can finish without raising an error while doing no useful work.
How do I alert when a scheduled action is overdue?
An overdue alert needs a timestamp to compare against, and Odoo keeps one in the scheduled action record: the next execution date and the last run information shown in the scheduled actions list. A monitoring job can query the ir_cron table in PostgreSQL read-only and flag any active action whose next call date is more than its expected interval in the past. Set the threshold per job, because a nightly sync and a five-minute queue processor have very different tolerances. Route the alert to the team that owns the module, not only to infrastructure staff. Confirm the column names against your Odoo version before writing the query, since they can change between releases.
How can I track cron thread saturation over time?
Saturation means every cron worker is busy, so new jobs wait in the queue. Track the number of cron workers configured with max_cron_threads against the number of cron processes or threads actually running, and record how long each job waits between its due time and its start time. Operating system tools such as process listings can count the cron processes, while the log timing of job start and finish gives the wait. A rising wait time for the same jobs is the signal to act on, either by spreading heavy jobs across the day or by adding worker capacity. Confirm the setting name and default for your version in the Odoo deployment documentation before you set alert thresholds.
How do I detect that the cron process has stopped?
A stopped cron process shows up as an absence of activity, so alert on silence rather than on errors. Check that the cron worker process exists with a process supervisor check, and confirm it is still writing heartbeat-like log lines or completing scheduled actions within the expected window. In a WSGI setup, confirm that the dedicated cron worker is running separately from the HTTP workers, because a web-only deployment will serve pages while no scheduled action runs. Include a restart policy in your service manager and log every restart, since repeated restarts often point to memory exhaustion or a job that crashes the process.
What should I record for an audit of scheduled action execution?
Auditors and internal reviewers usually want evidence that automated processes ran as designed, failed visibly and were corrected. Keep a record of each scheduled action's name, owning module, schedule, active status and last change, taken from the configuration and version control of your custom modules. Retain the relevant server log lines with timestamps, the cron worker configuration, restart events and alert history for a period your own policy sets. Include who changed a scheduled action and when, which Odoo's own tracking may capture only if the model is configured for it, so confirm that setting. This evidence supports your controls, but it does not replace an independent audit by a qualified assessor.
Which parts of cron monitoring can my own team build?
Most of the monitoring described here uses tools a platform team already runs: log shipping, a PostgreSQL read-only query, process checks and a dashboard or alerting rule. The effort is mainly in agreeing thresholds per job, mapping each job to an owner and testing that alerts fire during a planned stop. Ask a partner for a fixed-scope review if your team lacks PostgreSQL or Odoo internals experience, or if the monitoring must be validated for a compliance review. Cost depends on how many scheduled actions you have, how many environments need coverage and how much custom module logging must be added, so request a quote built from that written scope.
Can DeployOpen set up cron monitoring for our Odoo system?
DeployOpen plans, implements, hardens, documents and supports self-hosted Odoo inside your own infrastructure, so cron monitoring can be part of a fixed-scope engagement. The written scope would list which scheduled actions, environments and log sinks are covered, the alert rules and owners, and the test that proves a stopped worker is detected. DeployOpen does not issue audit reports or certifications, so any evidence it prepares supports your own or an independent assessment. A quote follows from that written scope.
Limits to confirm in your environment
Cron behavior depends on the Odoo version, the WSGI setup, the custom code running alongside it and who controls the host. The cards below list the checks to run before you change any setting, so that a fix matches the environment you actually operate.
Exact keys and defaults for your version
Confirm the cron-related configuration keys, including max_cron_threads, and their defaults in the exact Odoo version you run. Settings are not guaranteed to be identical across releases, so read the configuration reference for that version rather than copying values from a blog post or an older install. Record the values in your running config file and in the process environment, since either can override the other.
Behavior under your WSGI server
Check how your deployment starts the cron process. A multi-worker server runs HTTP workers and cron workers as separate processes, and the number of cron threads available depends on that process model and on how many worker processes you start. Confirm which process runs scheduled actions, how it restarts after a crash, and whether a reverse proxy or service manager is also restarting it.
Support status of your version
Check where your major version sits in Odoo's standard support window. Security patches are only provided during standard support, and the cron fixes you may need often arrive in the same releases. If your version is near the end of that window, plan an upgrade before tuning the cron setup, because the tuning may not carry over to the next release.
Support docsLong-running jobs from custom modules
Inventory every scheduled action installed in your database, including those added by custom modules and third-party apps. Note which ones loop over large record sets, call external APIs without timeouts or commit in one large transaction. A single slow custom job can hold a cron thread for a long time and delay every other job, so ask the module author or your partner for the expected run time of each one.
Who controls the cron process
Confirm whether your hosting type leaves the cron process under your control. On self-hosted Linux, you manage the service and its logs. In Docker, the container image and its command define how cron starts. On Odoo.sh, the platform manages the process, so your options are limited to what the platform exposes. Ask the hosting provider which settings you can change and which logs you can read.
Common questions about fixing Odoo cron jobs
How much effort does fixing Odoo cron jobs usually take?
Effort depends mostly on whether the cause is a configuration setting or custom code. A worker limit or a neutralized copy with crons disabled can be corrected in a short session once the cause is confirmed. Jobs that time out, hold locks or depend on custom modules need code review, query work and load testing, which takes longer. The main drivers are the number of scheduled actions, how many are custom, the data volume they process, how the server runs Odoo (with or without dedicated cron workers), and how many environments must be checked. Ask any provider to split the quote into diagnosis, fix and verification so you can see where the effort sits.
Can our own team fix Odoo scheduled action problems without a partner?
Often yes, for configuration problems. A team with Linux and PostgreSQL experience can check max_cron_threads, confirm that cron workers run under the process model in use, read the Odoo server log for the failing job, and check whether a copy was neutralized with crons switched off. Custom code that overruns time limits, locks rows or fails on bad data is harder to fix without someone who reads Odoo's ORM and the custom module. A reasonable test is whether your engineers can reproduce a late or missed run in a staging copy and explain the cause in writing before changing production.
What should we send a consultant before a cron diagnosis starts?
Send the information that shows what ran, when and why it stopped. Typical items are:
- The Odoo version and edition, plus the list of installed custom and third-party modules
- The Odoo configuration file with passwords removed, especially worker and time limit settings
- Relevant lines from the Odoo server log and any systemd or container logs for the failing period
- A sample of the failing scheduled actions, with their intervals, last run times and owning modules
- Database size and the number of rows in the tables the jobs read or write
- Whether the database is a production copy, a neutralized copy or a restored backup
Remove secrets before sending anything, and agree on how files will be shared and stored.
How long does diagnosing a cron problem usually take?
There is no fixed duration that applies to every system, so ask for one based on your setup. Diagnosis is shorter when the cause is a known setting, the logs are complete and the installed modules are standard. It is longer when jobs call custom code, process large tables, depend on external services or run only at specific times, because each theory needs a reproduction. Data volume matters because a job that runs quickly on a test copy can time out on production. Ask the provider what they need to reproduce the issue, whether they need production-sized data, and what they will deliver at the end of diagnosis.
What should a quote for Odoo cron troubleshooting include?
A useful quote states the scope in writing before work begins. It should list the environments covered, the jobs or symptoms in scope, and the Odoo version. It should name the checks included, such as worker configuration, log review, lock and timing analysis, and the monitoring you will receive. It should separate diagnosis from fixes, say which custom code changes are included, and describe how the fix is tested on a copy before production. It should also state the deliverables, such as a written root cause summary and a configuration change list, and whether follow-up monitoring or retesting is included. Ask what is excluded, especially changes to infrastructure or other modules.
Do Odoo cron problems change after an upgrade to a newer version?
They can. Odoo's upgrade documentation describes an upgraded test database that should be tested before production, and that is the right place to confirm scheduled actions behave as expected. Custom modules written for an older version may define jobs or depend on APIs that change, so their scheduled actions need checking after the upgrade. Also confirm the support status of your version. Odoo's standard support windows are listed in its support documentation, and the support window you are on affects which fixes you can expect from Odoo. Ask any partner to include cron checks in the upgrade test plan.
Does DeployOpen fix Odoo scheduled actions in our infrastructure?
DeployOpen works on self-hosted open-source platforms inside the client's own infrastructure, including Odoo, so cron diagnosis can be scoped to your servers, database and logs. Work is usually fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts. DeployOpen does not publish prices, so a quote follows from the written scope. If you want continuous checks on job execution after the fix, ask about a support retainer, which DeployOpen offers for ongoing support and upgrades.
How DeployOpen troubleshoots and supports Odoo cron workers
DeployOpen treats late or missing scheduled actions as an operations problem with a traceable cause, not a guess. We scope the investigation in writing, work inside the Odoo deployment you run in your own infrastructure, and hand over the fixes, checks and runbook your team needs to keep cron jobs running.
How we scope
- Engagements are fixed-scope, with the systems, Odoo version and cron jobs in question agreed in writing before work starts.
- We review worker configuration, deployment method and the scheduled actions that are late, failing or not running at all.
- The written scope names what we will check, what evidence we need from your logs and database, and what is excluded.
How we build
- We test worker limits, cron thread settings and time limits against the reported symptoms in a copy of the environment you approve.
- We check whether a copy of production has crons disabled or neutralized, and confirm the setting before any change goes to production.
- We build monitoring for job execution, such as log checks and queue lag signals, so a stalled job is visible before users report it.
How we hand over
- You receive a written findings summary that links each cause to the configuration or code behind it, with the change we recommend.
- We document the configuration changes, monitoring checks and the steps your team should follow when a scheduled action stops.
- Handover includes a review with your operations team so they can run the checks without us.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so cron behavior can be rechecked after each Odoo update.
- We can retest the same jobs after your fixes and confirm they run within the schedule your business expects.
- Ask us to confirm support coverage for your Odoo version in writing, since standard and extended support windows differ by release.

