Skip to content

Jobs ​

This page covers the Jobs menu: what a job is, its statuses and stages, how to read job details, stopping a job, and automatic and manual retries.

What a job is ​

Operations that take a long time or run on a hosting server are not done the moment you click a button. The panel creates a job, and a control plane worker runs it, usually by sending a command to the agent on the server.

Examples of operations that run as jobs:

GroupExample job kinds
Accountsaccount.provision, account.suspend, account.unsuspend, account.change_package, account.terminate, account.purge, account.move
Websites and SSLwebsite.provision, website.delete, ssl.issue, ssl.install
Backupbackup.run, backup.restore, backup.check, backup.restore_test
Appsapp.install, app.wp_update, app.wp_restore, app.wp_clone, git.deploy
Databasesdb.export, db.import
Serversserver.switch_webserver, server.db_profile
Migrationmigration.cpanel_import, migration.wave_account, migration.wave_sync, migration.wave_cutover

When you start a job from another page, the panel usually follows it and tells you the result. Every job is also listed in the Jobs menu.

Account backup jobs (backup.run, backup.check, backup.restore_test) and cPanel migration jobs (migration.cpanel_import, migration.wave_*) run on their own workers, so a long backup window or migration wave does not hold up other jobs such as SSL or website changes. How many run at the same time per server is set in the Backup Center settings and in the migration settings. See Backup Center and Importing from cPanel.

Job status ​

StatusGUI labelMeaning
queuedQueuedWaiting for a worker.
runningRunningBeing processed. Shown as Stopping after a stop was requested.
succeededCompleted / SuccessSucceeded.
failedFailedFailed after every attempt. The error code and message are available.
cancelledCancelledCancelled or stopped before finishing.

A failed job also opens a job_failed alert. See Dashboard and alerts.

Job list ​

Open Jobs in the System group. The sidebar badge shows the number of jobs running or queued.

Summary cards ​

CardContents
RunningJobs currently running on the control plane worker.
QueuedQueued jobs, and how long the oldest one has been waiting.
CompletedSuccessful jobs and the success rate in the chosen range.
FailedFailed jobs that need follow-up.

When a job failed in the last 24 hours, a banner shows the latest failed job and its attempts, with a View details button.

Searching and filtering ​

  • The Search jobs box.
  • Filters: Status, Kind, Server, Account, and Date range: All loaded, Last 24 hours, Last 7 days, or Last 30 days.

Table columns: Job, Type, Server, Status, Attempts, Started, and Duration. Click Details to open the job details. Queued and running jobs also have a Cancel, Stop, or Kill button next to Details (see Stopping a job).

Job details ​

The details page refreshes automatically every 3 seconds until the job finishes.

SectionContents
Migration progressOnly for running migration jobs (migration.*), such as cPanel imports and restores: the current stage (for example Copying home and mail or Importing databases), percentage, bytes copied, speed, time left, and how long the stage has been running. Updated every 2 seconds.
Execution timelineThree stages: Queued (created), Started (processing began), then Finished (done, succeeded, or failed), each with its time.
ErrorError code and message when the job failed.
Job resultThe result returned by the worker or agent, as JSON. You can Copy or Download it.
AuditAudit entries that refer to this job, with time, actor, action, and reason. Link: Open Logs & Audit.
Job metadataJob ID, kind, status, attempts, created, started, finished.
RelatedLinks to the account, server, audit, and alerts.

Stopping a job ​

Administrators and technicians can stop a job from the job list or the job details. The button depends on the job's state:

StatusButtonEffect
QueuedCancelThe job becomes Cancelled right away and never runs.
RunningStopThe worker is asked to stop. Within about 15 seconds it stops waiting and the job becomes Cancelled (error code cp.job_cancelled). Until then the status shows Stopping.
Running, stop already requested or the worker has not reported for over a minuteKillThe job is marked Cancelled immediately, without waiting for the worker. A late result from the worker is ignored.

Confirm the prompt that opens after you click the button.

Work on the server may still finish

Stopping only makes the panel stop waiting. A command already sent to the server agent can still finish on the server. Check the result on the server before you retry the job.

These job kinds cannot be stopped while Running, because their rollback runs inside the same job: account.move, server.switch_webserver, migration.wave_cutover, and server.db_profile. No stop button is shown for them. While still Queued, they can be cancelled.

The audit log records job.cancel (cancel or stop) or job.kill. The job webhook is sent the same way as for a failed job.

Interrupted jobs ​

A running job reports a heartbeat every 15 seconds. If the control plane restarts or is upgraded while a job is running, that heartbeat stops. Every minute, and once at start, the control plane closes running jobs whose last heartbeat is older than 3 minutes:

  • without a stop request, the job becomes Failed with the code cp.job_abandoned;
  • if a stop was already requested, the job becomes Cancelled.

Interrupted jobs are not retried automatically, because many jobs are not safe to repeat blindly. Check the result on the server first, then use Retry.

Automatic retry ​

The worker retries jobs that failed because of a temporary error (e.g. the agent was briefly unreachable), up to 3 attempts. The Attempts column shows which attempt it is, e.g. 2/3.

Final errors (e.g. invalid input) mark the job Failed right away without retrying.

Manual retry ​

For jobs with the Failed or Cancelled status:

  1. Open the job details.
  2. Fix the cause first, for example a full disk or a stopped service.
  3. Click Retry.
  4. Confirm. The panel creates a new job with the same kind, server, account, and input, then opens its details right away.

The old job is not changed and stays in the history. The retry is recorded in the audit log as job.retry, referring to the old job and its previous error code.

The Retry button is only shown to administrators and technicians.

When a retry is refused ​

  • The job status is not Failed or Cancelled.
  • A job of the same kind for the same server and account is still queued or running.
  • The job kind has its own recovery flow. Blindly repeating the old input could damage data, so repeat it from its own page:
Job kindRepeat from
account.moveAccount details › Move to another server…, which has a dry run and rollback. See Moving between servers.
migration.cpanel_import, migration.wave_account, migration.wave_sync, migration.wave_cutoverThe Migration menu. See Importing from cPanel.
server.switch_webserverSwitch the web server in the server details, which has a pre-flight check and rollback. See Web server modes.

The Retry button is not shown for these kinds.

Through the API ​

  • GET /v1/jobs and GET /v1/jobs/{jobId} read the job list and details.
  • POST /v1/jobs/{jobId}/retry creates a retry. The Idempotency-Key header is required; repeating the request with the same key returns the same job.
  • POST /v1/jobs/{jobId}/cancel cancels a queued job or asks a running job to stop. The optional body {"force": true} kills it right away. A job kind that cannot be stopped while running answers 409 cp.job_not_cancellable.

See API reference.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.