Documentation

Workers overview

Workers run your dPanel jobs, such as deployments and module installs. Use dPanel's shared workers, or your own GitHub Actions workflow or VM.

A worker in dPanel is the program that runs your workspace's jobs: setting up a server, installing a module, deploying an application, applying a load balancer. For servers connected over SSH (the secure way to log in to a server remotely), it connects to them and reports back to dPanel. See the Glossary.

Servers connected with the dPanel agent work differently: their module installs and deploys run on the server itself, prepared by its agent, whatever workers the workspace uses. The first job after such a server joins waits about two minutes while the agent prepares it; the server's Modules tab then reads Waiting for the server to start this install. Workers still create and delete cloud VMs at your provider.

You do not need to set anything up. dPanel's shared workers run every job unless you choose your own.

The Workers card on the Profile page, with Shared workers (dPanel) selected, Private workers off and an Add worker button
Workers on Profile: shared workers run your jobs until you add your own.

Shared or private

Shared workers (dPanel)Private workers (yours)
SetupNoneAdd a GitHub workflow or a VM
Who runs your jobsdPanelOnly the workers you add
Good forGetting started, most workspacesServers reachable only from your network, your own CI minutes, compliance

Each workspace chooses on its own, in the Workers card under Where jobs run: your personal workspace on Profile, a team on its team page. Only team owners and admins can change a team's workers; other members see the card read-only. The option marked Current is the one in use.

Two kinds of private worker

GitHub workflowVM
How it runsdPanel starts your workflow when a job is waiting. One run takes one job and ends.Runs all the time and asks dPanel for jobs.
Secret to keepNone. The run signs in with GitHub's identity token.None to copy: the install command saves the token on the machine.
SetupOne short workflow fileOne button on a server with the dPanel Agent, or one command elsewhere
GuideGitHub Actions workerVM worker

A VM worker installs on one of your servers with one button when the server runs the dPanel Agent, or with one command on any other Linux server or VM; see VM worker, which also covers what to do when an install stops.

Where jobs wait

When a workspace uses private workers, its jobs go only to those workers. If none of them is running, jobs wait for one. A job that no worker takes within about 25 minutes stops with No worker reported on this job in time; start a worker, then retry it. Switching back to Shared workers (dPanel) sends new jobs to dPanel again; your workers stay registered so you can switch back later.

From the terminal

The dnocs command-line tool manages the workers of the workspace you selected. See AI in the terminal to install it.

CommandWhat it does
dnocs worker listShows the mode (shared or private) and your private workers.
dnocs worker add --type github --name ci --repository acme/dpanel-workersRegisters a GitHub workflow worker and prints the workflow file.
dnocs worker add --type vm --name office --executor-id office-01Registers a VM worker and prints the one command that installs it.
dnocs worker install --id <worker ID> --server-id <server ID>Installs a VM worker on your server through its dPanel Agent.
dnocs worker install-status --id <worker ID>Shows how far a VM worker's latest install got.
dnocs worker install-command --id <worker ID>Prints a new install command for a VM worker (works once, for 2 hours).
dnocs worker mode private or dnocs worker mode sharedSends jobs only to your workers, or back to dPanel's.
dnocs worker rotate-token --id <worker ID>Gives a VM worker a new token; the old one stops working at once.
dnocs worker remove --id <worker ID>Removes a private worker.

You can also ask Ask dPanel to do this for you; see Prompt cookbook.

Frequently asked questions

Do I need my own worker?

No. dPanel's shared workers run every job by default. Add your own only if your servers are reachable only from your network, you want jobs to run on your own CI minutes, or you need to for compliance.

What happens to waiting jobs if my private worker is down?

They wait, for about 25 minutes. Jobs of a workspace on Private workers go only to its own workers; a job that no worker takes in that time stops and can be retried. Start the worker again, or switch back to Shared workers (dPanel).

Do I lose my workers when I switch back to shared?

No. They stay registered. Switch to Private workers again whenever you like.

Can a team and my personal workspace use different workers?

Yes. Each workspace has its own setting.