# urbestack-job-worker

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-job-worker [--lane short|long] [--once] [--interval SECONDS]
```

## Description

Runs queued jobs one at a time, oldest first, and records their results and logs. The job type determines whether it belongs to the short or long lane. Use --lane to restrict the worker to one lane. By default, it takes jobs from both. UrbeStack runs one worker per lane as root under systemd so short jobs can run while long jobs are in progress.

With --once, the worker exits as soon as it has no eligible job to run. Otherwise, --interval sets how many seconds it waits between checks when idle. The default is 3 seconds. During an UrbeStack update, the worker takes no new jobs, so --once can exit with jobs still queued.

SIGTERM or SIGINT stops the worker and interrupts its current job. The worker marks jobs that time out as failed. It also marks jobs left running by a previous worker as failed once they are more than 60 seconds past their time limit.

The default job time limit is 30 minutes. The limit is 15 minutes for cert-issue and botmail-domain, 1 hour for php-ext, php-notify, mail-install, database-install, ftp-install, quota-install and modsec-install, 90 minutes for php-install, and 2 hours for dns-push. The limit is 6 hours for php-move and backup-make, 12 hours for restore and foreign-import, 24 hours for backup-run and move-cutover, and 72 hours for move-copy.

## Command family: job

- [urbestack-job-add](https://urbestack.com/docs/commands/urbestack-job-add.md): Queues a job for urbestack-job-worker.
- [urbestack-job-dismiss](https://urbestack.com/docs/commands/urbestack-job-dismiss.md): Dismisses the failed job specified by --id so it no longer needs attention in the web interface.
- [urbestack-job-list](https://urbestack.com/docs/commands/urbestack-job-list.md): Lists one page of jobs, newest first.
- [urbestack-job-show](https://urbestack.com/docs/commands/urbestack-job-show.md): Shows the job specified by --id, including its type, parameters, state, requester, timestamps, result and full log.
