Docs
On this page
reference2 min readApplication: Platform

Scheduled jobs and job queues

Fields of a scheduled job and a job queue, the cron format jobs use, and the platform jobs and queues Servicely ships.

Servicely runs background work in two ways. A scheduled job runs a server-side script on a cron schedule. A job request is a one-off piece of work that a script submits to a job queue. Use this page to look up the fields and the shipped records.

Jobs are under Administration → Configuration → Jobs and queues under Administration → Configuration → Job queues. Both need the administrator role. To create a job, see Create a scheduled job.

Job fields

Name Description
Job name The name of the job.
Active Only active jobs are scheduled. Clear it to stop a job without deleting it.
Cron expression When the job runs, as a cron expression. See the next section.
Description What the job does.
Script The server-side script that runs every time the job is triggered.

The Activate jobs and Deactivate jobs operations change Active on the selected jobs. There is no operation to run a job once on demand.

Cron expressions

A cron expression has seven fields: seconds, minutes, hours, day of month, month, day of week and year. Jobs run in the instance time zone, set by system.timezone.

Name Description
0 0 1 ? * * * Every day at 01:00.
0 0/5 * ? * * * Every five minutes.
0/10 * * ? * * * Every ten seconds. Used by the platform’s queue processors.
0 0 1 ? * * * @ 14 Every 14 days at 01:00. Add @ and a number of days for an interval that cron cannot express.

Do not run your own jobs every minute or more often without a reason. Each run adds load to the instance.

Job queue fields

Name Description
Name The queue name that scripts submit job requests to.
Batch size How many requests the queue takes at a time [UNVERIFIED].
Maximum pool size The maximum number of concurrent threads that run requests from this queue. It cannot exceed system.job.queue.pool.size.limit.

A script submits a job request with Job.request(), then sets the queue, the script and other options before submit(). Requests go to the Default queue unless the script names another. The “Job request poller” job picks up waiting requests every ten seconds. Each request is recorded under Administration → Logging & statistics → Job requests, with its State, Queue, Script, Result, Exception and timings. See Job for the script methods.

Name Description
system.job.queue.pool.size.limit The highest Maximum pool size a queue can have. Shipped value 50.
system.job.poller.max.requests The most requests the poller takes in one run [UNVERIFIED]. Shipped value 1000.
system.job.poller.retry.waiting.minutes Minutes before the poller retries a waiting request [UNVERIFIED]. Shipped value 60.

Shipped job queues

Name Description
Default Batch size 20, maximum pool size 2.
Action Batch size 20, maximum pool size 2.
AI.Prompt Batch size 20, maximum pool size 4.
Assistant.Async Batch size 4, maximum pool size 2.
Email Batch size 10, maximum pool size 1.
Index Batch size 20, maximum pool size 1.
Message Batch size 20, maximum pool size 2.

Shipped platform jobs

The platform application ships these jobs. Other applications add their own, such as the auto-closure jobs of ITSM and the email processing jobs.

Name Description
Async integration claim timeout Every five minutes. Fails async integration actions that have had no reply or progress update within the claim timeout.
Event processor - Default Every five seconds. Processes the default event queue.
Global search - delete document Every ten seconds. Processes the queue of documents to delete from the search index.
Global search - index record Every ten seconds. Processes the queue of records to index.
Global search - sync scheduler Every minute. Queues sync events for every active global search configuration.
Global search - sync table Every ten seconds. Processes the table sync queue.
Job request poller Every ten seconds. Picks up waiting job requests.
Messaging - Refresh Tokens Daily at midnight. Refreshes messaging provider tokens that are about to expire. Inactive when shipped.
Scheduled data import processor Every minute. Runs scheduled imports. Inactive when shipped.
Scheduled data load processor Every minute. Runs scheduled data loads. Inactive when shipped.
Scheduled import of SCCM Daily at 23:00. An example job that runs the SCCM imports in order. Inactive when shipped.
Scheduled load of SCCM Daily at 22:00. An example job that runs the SCCM loads in order. Inactive when shipped.
Scheduled report processor Every minute. Runs scheduled reports.
Scheduled template processor Every minute. Runs scheduled templates.
System table cleanup Daily at 01:00. Runs the system table cleanup records.

Do not delete the processor jobs or change their schedules. Each scheduled import, load, report or template is a trigger on its processor job.

Last updated 24 November 2026commit 88e011e506a8Chris Jones
Back to top