Scheduled jobs and job queues
Fields of a scheduled job and a job queue, the cron format jobs use, and the default jobs and queues.
Servicely runs background work in 2 ways. A scheduled job runs a server-side script on a cron schedule, and a job request is one piece of work that a script submits to a job queue. You need the administrator role, and jobs, job queues and job requests are under Scripting & automation → Jobs & generators in the Administration workspace.

Job fields
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Job name | Text | Yes | None. | The name of the job. |
| Active | Yes or no | No | Default: No. Only an active job is scheduled. | Turns the job on, or stops it without deleting it. |
| Cron expression | Text | Yes | Read-only. The asterisk icon beside it opens the Construct cron expression dialog, which writes the expression. | When the job runs. See Cron expressions. |
| Description | Text | No | None. | What the job does and why. |
| Script | Script | Yes | Runs on the server each time the job is triggered. | The work the job does. |
Cron expressions
A cron expression has 7 fields: seconds, minutes, hours, day of month, month, day of week and year. Jobs run in the instance time zone. See Set the instance and user time zones.
| Expression | When the job runs |
|---|---|
0 0 1 ? * * * |
Every day at 01:00. |
0 0/5 * ? * * * |
Every 5 minutes. |
0/10 * * ? * * * |
Every 10 seconds. |
0 0 1 1 * ? * |
At 01:00 on the first day of each month. |
0 0 1 ? * * * @14 |
Every 14 days at 01:00. The @ and a number of days give an interval that cron alone cannot express. |
Each run adds load to the instance, so run your own jobs no more often than the work needs.
Job queue fields
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Name | Text | No | Cannot be changed after the queue is created. | The name scripts use to submit job requests to the queue. |
| Maximum pool size | Integer | Yes | Must be above 0 and no higher than the system.job.queue.pool.size.limit property. |
How many requests from the queue run at the same time. |
| Batch size | Integer | Yes | Default: 20. A value above 50 counts as 50. A change takes effect when the server restarts. | How many picked-up requests can wait for a free thread. |
Job requests
A script submits a job request with Job.request(). The request goes to the Default queue unless the script names another. The “Job request poller” job picks up waiting requests every 10 seconds, at most 20 for each queue in one pass. See Job for the script methods.
Each request is a record under Job requests, with its Queue, Name, State, Script, Result, Exception and timings. The “Job request cleanup” record deletes completed requests after 7 days.
| Property | Default | Effect |
|---|---|---|
system.job.queue.pool.size.limit |
50 |
The highest Maximum pool size a queue can have. |
system.job.poller.retry.waiting.minutes |
60 |
Minutes a picked-up request can stay in the Waiting state before the poller returns it to New, so that it is picked up again. |
Default job queues
The platform application supplies these queues. Other applications add their own.
| Name | Batch size | Maximum pool size |
|---|---|---|
| Default | 20 | 2 |
| Action | 20 | 2 |
| agent-process-ticket | 10 | 2 |
| AI.Clustering | 2 | 1 |
| AI.Prompt | 20 | 4 |
| Assistant.Async | 4 | 2 |
| 10 | 1 | |
| Index | 20 | 1 |
| Message | 20 | 2 |
| Workflow.Upgrade | 1 | 1 |
| Workflow.UpgradeCheck | 1 | 2 |
Default jobs
The platform application supplies these jobs. Other applications add their own, such as the auto-closure jobs of ITSM and the email processing jobs. Leave the processor jobs and their schedules as they are: each scheduled import, load, report or template is a trigger on its processor job.
| Name | Schedule | Active by default | Purpose |
|---|---|---|---|
| Async integration claim timeout | Every 5 minutes | Yes | Fails async integration actions that have had no reply or progress update within the claim timeout. |
| Event processor - Default | Every 5 seconds | Yes | Processes the default event queue. |
| Global search - delete document | Every 10 seconds | Yes | Processes the queue of documents to delete from the search index. |
| Global search - index record | Every 10 seconds | Yes | Processes the queue of records to index. |
| Global search - sync scheduler | Every minute | Yes | Queues sync events for every active global search configuration. |
| Global search - sync table | Every 10 seconds | Yes | Processes the table sync queue. |
| Job request poller | Every 10 seconds | Yes | Picks up waiting job requests. |
| Messaging - Refresh Tokens | Daily at 00:00 | No | Refreshes messaging provider tokens that are about to expire. |
| Queue Cluster Analysis Runs | Daily at 02:00 | Yes | Queues a run for each active cluster analysis that is due. |
| Scheduled data import processor | Every minute | No | Runs scheduled imports. |
| Scheduled data load processor | Every minute | No | Runs scheduled data loads. |
| Scheduled import of SCCM | Daily at 23:00 | No | An example job that runs the SCCM imports in order. |
| Scheduled load of SCCM | Daily at 22:00 | No | An example job that runs the SCCM loads in order. |
| Scheduled report processor | Every minute | Yes | Runs scheduled reports. |
| Scheduled template processor | Every minute | Yes | Runs scheduled templates. |
| System table cleanup | Daily at 01:00 | Yes | Runs the system table cleanup records. |