Why SuiteCRM async tasks stuck in Pending need a worker check first
When queued tasks on a self-hosted SuiteCRM 8.10 instance never start or never finish, the usual cause sits in the Messenger worker, the user account it runs as, or the way it restarts. Check those three things before you change any task, job or database setting. This page is scoped to SuiteCRM 8.10, and the SuiteCRM documentation does not give a single fixed list of symptoms for stuck tasks, so the diagnosis starts from how the background processing is set up in your environment.
In SuiteCRM 8, some work is not done during the web request that triggers it. Examples include jobs that process queued messages, handle larger background operations, and run data migration steps after an upgrade. The web application places these tasks on a queue, and a separate worker process picks them up and runs them. The web pages can look healthy while nothing in the queue moves, which is why a Pending status alone does not tell you whether the scheduler, the queue or the worker has failed. The scheduler widget and the scheduled job checks are covered on their own pages, so this section only establishes the worker as the first suspect.
Bring in outside help when the worker runs correctly under its intended user but tasks still stall, when a manual migration task fails after an upgrade, or when a fix touches the database or file ownership in production. Confirm with your own administrators which host runs the worker, which operating system user owns it, how it is restarted, and what your change and rollback process requires. Those answers decide whether an internal fix is safe or whether the work should be scoped with a partner first.
How a queued task moves from Pending to finished
This simplified model shows a background task starting from a user action or the scheduler, being saved as Pending, and waiting for the Messenger worker. The worker runs under a system user, so file ownership or access problems can stop it before the task code runs. Each task ends as finished, failed, or still Pending. Check three points: whether the worker is running under the expected user, whether a time limit stops it partway through, and whether a manual migration task after an upgrade is waiting for someone to run it.
Simplified model of task flow, showing where time limits, worker user and manual steps interrupt it.
Which cause fits your symptoms
When a task sits in Pending and never moves to running, the worker is usually not picking up work at all. Start with the scheduler and the Messenger worker rather than the task itself, because a stopped worker leaves every queued job in the same state. Confirm that the cron entry that triggers the scheduler runs, and that the worker process is alive under the expected service or supervisor.
- Worker process state: Check whether the Messenger consumer is running and when it last started. A process that exits at startup usually logs a fatal error.
- Run user: Compare the user that owns the worker with the user that owns the instance files and cache. A mismatch often explains a worker that starts but cannot write its state.
- Recent log entries: Pull the Symfony and suitecrm.log entries from the last worker start, looking for permission, database connection or PHP errors.
- Database connectivity: Confirm the worker can reach the same database as the web application, using the same credentials and host.
- Scheduler widget: Record the last user and successful run shown in the scheduler page to see whether any job has run recently.
After these checks, confirm the worker picks up a single test task before you resubmit the backlog.
Tasks that begin running and then halt usually point to the worker being terminated or to an error inside the task. The evidence sits in the timing of the stop: a task that ends at the same point every time suggests a limit or a fault in that specific job, while random stops suggest the process is being killed by the system or a supervisor.
- Termination signals: Check the supervisor or service logs for restarts, signals or out-of-memory events around the time the task stopped.
- Task failure records: Look for failed or errored entries in the queue and the matching stack trace in the Symfony log.
- Repeatable point of failure: Note the task type and the record or step where processing ends each time, since repeated failures at one step indicate a data or code issue.
- Process limits: Compare the worker's configured execution and memory limits with the host's limits, and confirm which limit applies to the worker process.
- Restart policy: Confirm whether the worker restarts automatically after it exits, and whether a restart loop is hiding the failure.
Collect the timestamps, the supervisor events and one full stack trace before changing any setting, so the fix targets the actual stop point.
Tasks that stall after a SuiteCRM upgrade or a migration often wait on a manual step, not a broken worker. Release notes and the migration guidance can require one-off tasks to run before background processing resumes, and file ownership or a changed worker configuration can also appear after the move. Check the release notes for the exact version you are running, since the patch releases carry only security and bug fixes and minor releases can differ.
- Pending manual steps: Review the upgrade notes and the migration checklist for any task that must be run by hand before the queue resumes.
- Version match: Confirm the code version, the database state and the worker's runtime all match the target release, using the compatibility matrix for PHP and database versions.
- Cache and permissions: Check that the cache folders and instance files are owned by the expected user after the move, since a leftover cache from the old version can block startup.
- Worker configuration: Compare the worker service definition on the new host with the old one, including the run user, paths and environment variables.
- Staging comparison: Where a staging copy exists, run the same steps there and compare the queue state, which shows whether the stall is specific to production.
Keep the pre-upgrade backup until the queue has cleared and the manual steps are recorded.
Some tasks finish quickly but a long job, such as a large import, mass update or report run, leaves the queue stalled afterward. The usual pattern is a worker that is killed during a long task, or a lock or stale status that never clears because the process ended before it could record completion. Test whether the problem repeats only for large inputs before assuming a general fault.
- Duration against the stall: Compare when the long job started with when the queue stopped, and note whether the stall began at a fixed time after start.
- Time and memory limits: Review the execution time and memory limits for the worker and for the web request that queued the job, since a limit reached mid-task leaves partial state.
- Partial records: Check the job's target records for half-finished changes, which show where processing stopped.
- Restart after kill: Confirm the worker is restarted after a kill and that it resumes the queue, not only the new tasks.
- Input size: Record the number of records each long job handled, so you can ask whether batching or splitting the job is possible.
If the stall recurs with a specific job, treat that job as the test case and do not raise limits until you know which limit is reached.
How to check the Messenger worker and the user it runs as
This sequence confirms that the Messenger worker is alive, runs as the same operating system user as the web server and file owner, logs no errors, and completes a test task. Each check ends with a pass or fail signal so you can tell whether the problem sits in the worker or elsewhere.
Confirm the worker process is running
On the application host, list the running processes and look for the Messenger consumer started from the SuiteCRM 8 instance directory. Run the check as the server administrator, and confirm the process is attached to the correct instance path, since several instances on one host can each have a worker. A pass is one or more worker processes with a start time after the last restart. A fail is no matching process, which means the worker must be started under a supervisor or the scheduling mechanism you use, and the next checks cannot be read until it runs.
Identify the operating system user running the worker
Use the process listing from the previous step to read the user column for the worker process. Record that user name, then compare it with the user the web server runs as and the owner of the instance files, including the cache and log folders. Confirm the exact names with your platform documentation, because the web server user differs between Linux distributions and packaging. A pass is one user shared by the worker and web server, with write access to the cache and log folders. A mismatch is the most common cause of tasks that stay Pending, so note it before moving on and follow the sibling file permissions topic to correct ownership.
Check the worker logs for errors
Open the worker output or the service journal for the process, and the Symfony and SuiteCRM logs in the instance log folder. Look for permission denied messages, database connection failures, memory or time limit stops, and repeated restarts. Note the timestamps of the last few entries and compare them with the time the task was queued. A pass is recent log entries with no errors that match the task's queue time. A fail is a repeating error, a stop message, or no entries at all since the task was created, which points to a worker that is not consuming the queue. The sibling logs and debugging topic explains which fields matter.
Check for restarts after time limits
Determine whether the worker exits after a fixed period and is restarted by the supervisor. Compare the process start times with the intervals between log entries. A worker that runs only briefly and then restarts can leave tasks in Pending if it is stopped while processing a long job. Confirm with your supervisor configuration whether a time or memory limit is set, and whether it is intended. A pass is a stable process start time across the observation window. A fail is frequent restarts, which means the limit or the job duration needs review before tasks can complete.
Queue a test task and watch it move
Create a low-impact background task in a non-production instance or during a quiet window, and note its initial status. Observe the task list and the logs as the worker picks it up. Confirm the task changes from Pending to running, then to finished, within a period you consider reasonable for your environment. Ask your SuiteCRM administrator to confirm which background task type is safe to test in your version. A pass is the test task reaching finished status and the worker logs recording the run. A fail is a task that stays Pending while the worker is running as the correct user, which means the queue connection or the task configuration needs investigation.
Record the result and choose the follow-up
Write down the worker process details, the user, the log findings, the restart pattern, and the test task result. If every check passed but real tasks still stay Pending, the cause is likely in the queue or in specific jobs, so review the scheduler status next. If the user or file ownership did not match, correct it with the file permissions guidance and repeat the test. Keep this record with your change log so the next upgrade can be checked against the same steps. The outcome is a documented pass or fail for each check and a clear next action.
Restarts after time limits and what they leave behind
A background task rarely fails cleanly. When a worker is stopped partway through a job, the task can be left looking active, half finished, or pending again. The cards below cover the common ways a time limit or restart produces a stuck task and what to check in your own worker setup.
Time limits that stop long tasks
A PHP or process time limit can end a long-running job while it is still working. The task has no chance to write a final status, so the record stays in whatever state it reached. Large imports, bulk updates and mass email sends are the usual candidates. Compare the duration of the stuck job with the limits set on the worker and the web server, and note whether the task fails at the same point each time.
Migration docsTasks left marked as in progress
A task that was running when the worker stopped may still carry an in-progress status. The worker will not pick it up again on its own, so it appears to be running forever. Check the task table for rows that have been in an active state for longer than any normal run. Clear or reset those rows only after you confirm no worker process is still handling them, or you risk running the same job twice.
Supervisor restarts of the worker
If a process supervisor such as systemd or Supervisor restarts the Messenger worker automatically, the worker comes back without any memory of the job it dropped. Restart policies, restart limits and the delay between attempts all shape what the queue looks like afterward. Confirm which supervisor manages the worker, how many restarts it allows before giving up, and whether a stopped worker raises an alert.
Memory exhaustion on large jobs
Jobs that load many records or attachments can exhaust the PHP memory limit or the memory available to the worker host. The process is killed without a clean error, which looks the same as a time-limit stop. Watch memory use while a large job runs, and compare the job size with the memory limit configured for the worker. Splitting a large job into smaller batches is often the more reliable fix.
Tasks that fail repeatedly
Some tasks fail on every attempt because of a data problem, a missing file or a configuration error. Each retry then consumes worker time and can block other queued work behind it. Look for the same task identifier failing in the worker output and the logs at each attempt. Fix the underlying cause before you clear the queue, since clearing it only removes the symptom.
Worker service settings to confirm
Before changing any code, confirm the worker service in your environment: the user it runs as, its working directory, the PHP binary and version, the time and memory limits it inherits, and how it is restarted. The SuiteCRM version and its supported PHP versions should match the compatibility matrix. Record these settings in your runbook so the next incident starts from known values.
Compatibility matrixRunning manual migration tasks after a SuiteCRM 8 upgrade
Some steps after a SuiteCRM 8 upgrade are not finished by the upgrade itself. They can be queued as background tasks that you must start by hand, and until they run, a feature may behave as if nothing changed. Before you touch the queue, confirm which release you are moving to, because the release type decides how much database change you should expect. Patch releases contain only security and bug fixes, with no new features and no database changes, so a patch upgrade should not leave database work waiting. Minor 8.x releases arrive roughly every eight weeks and are the ones that can carry schema changes and the migration tasks that follow them. Read the release notes for the exact version you are installing, and check the SuiteCRM LTS and release lifecycle page for where that release sits in the cycle.
Treat any manual migration task as a change to your production database, even when the documentation makes it look routine. A task can alter data, rebuild indexes or depend on files that the upgrade placed on disk, so the safe order is fixed. First, rehearse the full upgrade on a staging instance that is as close to production as you can make it, and run the queued tasks there while watching the logs and the scheduler. Second, take a full backup of the database and the instance files, and confirm you can restore it, because a failed task is much harder to undo than a failed upgrade. Only then run the same tasks in production, in the same order you used on staging. Ask your vendor or partner which tasks are expected for the target minor release and how long they took in their own test runs.
Plan for the case where a task fails or stays Pending after you start it. Do not repeat it blindly, and do not delete rows from the task queue to clear the screen. Record the error, the task state and the user the worker ran as, then restore from your backup if the database is partly changed and the cause is not clear. Keep a short written runbook that lists the backup location, the staging result, the owner who approves the production run and the rollback steps. Migration tasks are one-time work, but the staging rehearsal, backup testing and runbook are effort you repeat for every minor upgrade you take on.
Questions teams ask before fixing stuck tasks
Can our team fix stuck SuiteCRM tasks without outside help?
Yes, often. Most stuck Pending tasks come down to the Messenger worker not running, running as the wrong user, or stopping after a time limit, and an admin with shell access to the server can check each of these. The work is to confirm the worker process is alive, confirm it runs as the same user that owns the SuiteCRM files, and read the logs for the failing task. Teams without Linux administration or PHP experience, or without a safe staging copy to test fixes on, usually take longer and risk damaging a live instance. Ask whether your admins can reproduce the problem on a copy before they change anything in production.
What does a SuiteCRM support engagement cover, and what drives its effort?
A support engagement covers investigating the fault, applying a fix, and confirming that queued tasks complete. Effort depends on how many hosts and workers are involved, whether the instance has custom workflows or extensions that create background jobs, how much log history is available, and whether the upgrade that preceded the problem also needed manual migration tasks. Ask any provider to list the systems in scope, the access they need, what is excluded, and whether follow-up testing is included. DeployOpen works from a written, fixed scope agreed before work starts, so the quote follows from the scope you define together.
How long does diagnosis take, and what changes it?
Diagnosis time depends mainly on access and logs. With shell access, the web server and worker logs, and a recent backup, a single cause can often be isolated quickly. Without shell access, or when logs were rotated away, the work slows because each hypothesis needs a configuration change and a retest. We do not publish a fixed duration, because it depends on the environment. Ask for a first-step checklist and a list of artifacts needed, and ask the provider to state what result they expect after the first diagnostic session.
What must we provide before someone can diagnose stuck tasks?
Provide the items that show what the worker did and under which identity:
- Read access to the SuiteCRM logs and the web server and worker logs for the period when tasks stopped
- Shell access, or a supervised session, to the host, including the user the Messenger worker runs as
- The SuiteCRM version, PHP and database versions, and any recent upgrade or migration record
- A staging copy with a recent database and file backup, so fixes and migration tasks can be tested first
Also share the scheduler status and any custom workflows, since they create background work. Remove or mask personal data and credentials before sharing logs.
Is it safe to clear the queue of pending tasks?
Not without checking first. Pending tasks can represent work that users expect, such as sent emails, workflow actions, or migration steps. Clearing the queue can drop those actions silently, and a migration step that never ran may leave data in an inconsistent state. Before deleting anything, export the queue, record which tasks are pending and why, take a database backup, and test the decision on staging. Confirm with the business owner of each workflow which tasks can safely be rerun and which must be reviewed by hand.
Is this a SuiteCRM bug or a problem with our host setup?
In most cases, a host setup issue. Stuck Pending tasks usually come from the Messenger worker not starting, running under a user that cannot write to the instance, or being stopped after a time limit. These are configuration and permission faults on your server. A genuine product defect is more likely when the same task fails on a clean staging install built from the same version and host configuration. Check the compatibility matrix for your PHP, Apache, and database versions, and check the release notes for the version you run. Report a suspected defect with logs and reproduction steps to the vendor before assuming a bug.
When should we contact SuiteCRM Ltd for support?
Contact SuiteCRM Ltd when you have confirmed the host configuration is correct and the same task still fails on a clean copy, or when you suspect a defect in the product. SuiteCRM Ltd sells paid services around the free software, including the SuiteASSURED support package, so ask what that package covers, what response expectations it sets, and whether it includes help with upgrades and migration tasks. Ask for the scope in writing before you buy, and compare it with the work your own team or an implementation partner would cover.
Security and operational risks when touching the worker
Fixing a stuck Messenger worker means changing who runs processes, which files they can write, and which data lands in logs. Each of the six risks below is a way a quick fix creates a second incident, so check them before you restart anything in production.
Running the worker as root
Starting the Messenger worker or a console command as root is a common shortcut when a task hangs. The process then creates files that the web server user cannot read or write, and it runs with rights that a compromised task or plugin would inherit. Run the worker as the web server user that serves SuiteCRM, and confirm with your platform team which user the cron entry and service definition use before you change anything.
Pre-migration checklistBroad service account rights
A worker that can read the whole host, the database root credentials or the secrets directory turns a background job failure into a data exposure. Limit the worker account to the instance directory it needs, the database user that SuiteCRM uses, and the session and cache folders. Ask your team to list every path and credential the worker reads, and remove anything it does not need.
Logs that expose customer data
Task failures often log the full payload of an email, import or workflow job, which can include contact details, case notes and attachments. Before you share a log excerpt with a vendor or colleague, check what the worker wrote at the time of failure. Set access to log files as tightly as access to the database, and set a retention period that your data policy approves.
Ownership changes during a fix
Running a recursive chown or chmod across the instance to clear a permission error can make the web server unable to read its own code, or open writable paths to other users. Change only the directories named in the error, record their current owner and mode first, and reverse the change if the task still fails. Treat a broad permission reset as a change request, not a troubleshooting step.
Restoring from an old backup
A backup taken before the problem may bring back a database that does not match the files on disk, particularly after an upgrade that ran manual migration tasks. Restoring only the database or only the files can leave tasks in a state the new code cannot process. Restore both together, test the pair on a staging copy first, and confirm that the backup you choose predates the failing change and is complete.
Migration docsChange control and queue monitoring
Changes to the worker's service file, cron schedule, time limits or user should go through the same approval as other production changes, with a written rollback step. Pair that with an alert on how long tasks stay pending, so a stalled queue is seen the same day rather than when users report missing emails. Ask your team who receives the alert and how often someone checks the queue after a change.
Recovering a stuck queue on a self-hosted instance
This sequence restores a stuck SuiteCRM 8 background queue without losing data or repeating work, by protecting the instance first, proving the fix on staging, and confirming the queue drains on production afterwards.
Back up files and database before touching the queue
The administrator takes a full backup of the database and the instance files, including custom code and any uploaded documents or object storage references, before changing anything. Requeuing or clearing tasks can alter records, so this backup is the rollback point. Confirm the backup is complete by restoring it to a scratch location and checking that the instance loads and the record counts match the source. Record the backup identifier and time in the change ticket.
Confirm staging matches production
Before any fix is tried, the team checks that a staging instance runs the same SuiteCRM 8 version, PHP and database versions, extensions, and customizations as production, using the release and compatibility references for the version in use. Staging should be restored from a recent production backup so the stuck tasks and their data are reproduced. The check is complete when the version strings, PHP settings and the set of pending queue entries match between the two environments.
Verify the Messenger worker and the user it runs as
The administrator confirms that the Messenger worker process is running, that it starts under the same operating system user that owns the SuiteCRM files and cache, and that it is not blocked by a time limit or a restart policy that kills it mid-task. Ownership and permissions on the cache and log folders are checked for that same user. The step is done when the worker is shown as running, its user is recorded, and a test task placed on staging is picked up and completed.
Identify the stuck tasks before changing any of them
The team lists each pending task with its type, creation time, owner and any error text in the logs, and sorts them into tasks that are safe to rerun and tasks that depend on a manual migration step. Tasks that appear duplicated or belong to an old, already-completed change are marked for review rather than cleared. The step produces a written list reviewed by the application owner. It is complete when every stuck task has a decision recorded against it.
Clear or requeue only the identified tasks on staging
On staging, the administrator clears or requeues only the tasks on the reviewed list, one group at a time, while the worker is running. After each group, the team checks that the task reaches a completed state and that the records it touched look correct, comparing them with the backup. If a task fails, it is left in place and investigated through the logs rather than retried in a loop. The step is complete when the staging queue contains only tasks that were deliberately left pending, with a note on each.
Run the post-upgrade task on staging, then production
Where the stuck work is a manual migration task that follows an upgrade, the administrator runs it on staging first and confirms from the release notes and the upgrade documentation that the task is the one required for that version. The same task is then run on production in a maintenance window, using the same steps and the same worker user. The step is complete when the task reports success on both environments and the expected schema or data change is confirmed by a spot check.
Monitor the queue after recovery
After production recovery, the team watches the pending count, the time each new task takes to complete, and the logs for worker restarts or permission errors over the following days, and keeps the backup available until that monitoring is clean. Any new tasks that stall point back to the worker, its user or its time limit, which the earlier checks already covered. The step is done when the queue drains normally, no task stays pending past the team's agreed threshold, and the findings are written into the operations runbook.
When to bring in a SuiteCRM partner for stuck tasks
Decide early whether your own team can work through a stuck Pending queue, because the answer depends on four things: direct server access, a staging instance that mirrors production, readable logs from the worker and the web tier, and a change control process that lets you restart services and run migration tasks on a schedule. If your administrators can reach the host, check the messenger:consume worker and the user it runs as, reproduce the failure on staging, and record each change, the in-house route is reasonable. If any of those four is missing, the fix is often slower than the diagnosis, and a partner's value lies mostly in getting access and evidence quickly without a production experiment.
A DeployOpen engagement for this kind of problem is fixed-scope, so the written scope would set out the boundaries before work starts. In general terms, it would cover reviewing the hosting layout, the process manager or service definitions for the worker, the file ownership and PHP runtime under which tasks execute, and the logs from the failed runs. It would also state which SuiteCRM 8.10 version is in use, whether any manual migration tasks were pending after the last upgrade, and whether a staging copy is available for retesting. Deliverables would typically include a written root cause, the fix applied or recommended, and a rollback note. Confirm with the vendor which versions and environments the work will cover, and ask for the scope, deliverables and timeline in writing before any quote is accepted.
How DeployOpen works on this
DeployOpen approaches stuck SuiteCRM 8 background tasks as a scoped operations problem: we confirm what is queued, why the Messenger worker is not finishing it, and what must change so the fix holds. The work is planned in writing, carried out in your own infrastructure, and handed over with notes your team can repeat.
How we scope
- We agree in writing which SuiteCRM 8 instance, hosts and queues the review covers before any change is made.
- We record the PHP, web server and database versions in use, checked against the SuiteCRM compatibility matrix.
- We confirm who owns the Messenger worker, cron entry and service manager, so responsibilities are clear before work starts.
How we build
- We trace stuck Pending tasks to the worker process, its run-as user and any time limit or restart policy in your environment.
- We make changes on a staging copy first, with file and database backups taken before any manual migration task runs.
- We test that new tasks start, finish and clear from the queue, and that the scheduler widget shows a current successful run.
How we hand over
- We deliver a written record of the root cause, configuration changes, commands used and the verification results.
- We document the worker service unit, log locations and the checks your operators should run after each SuiteCRM upgrade.
- We walk your administrators through the runbook so the steps can be repeated without DeployOpen on site.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as retainers for teams that run SuiteCRM over time.
- Ask any quote to state which items are one-time setup and which recur, such as monitoring reviews and upgrade support.

