A scheduled job in ServiceNow runs work at a defined time or interval, including scripts, report delivery, and record creation. For platform maintenance, choose the job type, configure its schedule, activate the appropriate job, and verify both execution history and the records it should change. Monitoring helps distinguish waiting, running, and failed work.
Create a scheduled job in ServiceNow for a defined outcome
Start with the result you need: a report, a record generated from a template, or script execution. In Brazil, creating a scheduled job requires admin; in Australia, it requires system_scheduler_admin. New jobs are created on the Schedule Job [sysauto] table through All > System Definition > Scheduled Jobs.
- Select New.
- Choose Automate the generation and distribution of a report for scheduled report delivery.
- Choose Automatically generate something (a change, an incident, a ci, etc) from a template when the requirement is recurring record creation.
- Choose Automatically run a script of your choosing when maintenance requires script logic.
- Complete the fields presented for the selected job type.
The script option supports conditional and non-conditional scripts. Before implementing one, write down the records it should consider, the changes it should make, and the evidence that will show completion. Treat those as acceptance criteria for the first run. A job that executes without producing the intended result still needs investigation.
Prefer an existing application job when it already performs the required maintenance. A second job with overlapping responsibilities makes ownership and result checks harder. For the wider operating context, use the platform performance guide.
Activate the maintenance job that matches the task
Activation controls differ across application jobs. The application examples below use Brazil behavior; the dashboard guidance uses Xanadu behavior. Check the corresponding form, installed application, and release on your instance before making changes.
Generate Resource Capacity
Activating Generate Resource Capacity requires admin. Open All > System Definition > Scheduled Jobs, locate Generate Resource Capacity through the name field, and select Active. Adjust the fields on the Scheduled Script Execution form to fit the required cadence. Update saves the changes; Execute Now requests immediate execution.
Before using Execute Now, identify the resource capacity expected from the run and the records that will demonstrate it. Compare that output with the next scheduled execution to check whether the configured cadence produces the intended result. Saving a schedule and requesting execution are different actions, so note which one you performed.
CI lifecycle integrity maintenance
CI Lifecycle Management – Restore Internal State Management Tables starts disabled. It checks internal lifecycle management tables for integrity problems, including invalid requestors and expired leases. Activation has no required role; do not substitute a role requirement from a different job.
In System Definition > Scheduled Jobs, find that job. Double-click false in its Active column, choose true, and select the Save icon. Its work includes deactivating or removing internal records with invalid requestors and handling related Renew Lease Tasks. For valid requestors with expired leases, it creates a Renew Lease Task; continued expiry through the grace period can lead to deactivation of the corresponding CI action record.
Include the application owner in the outcome review. Integrity maintenance can alter internal records, so a successful check should explain the resulting lifecycle state rather than rely on the activation setting alone.
Configure Planned Maintenance Nightly Run deliberately
The maintenance-schedule procedure requires SM admin. Open All > System Definition > Scheduled Jobs, then Planned Maintenance Nightly Run. Under Related Links, select Configure Job Definition. Change Run and Time as required, then select Update. Execute Now is available for an immediate run.
This job evaluates maintenance schedules and creates the appropriate Service Orders for qualifying records, including records for the current day. Eligibility depends on meter, duration, script, or condition criteria. A run with no new Service Orders can therefore reflect the input criteria rather than an execution failure.
The planned-work procedure for Planned Maintenance Nightly Run requires admin. In that context, the job evaluates schedule occurrences and generates work orders for qualifying records. Lead Time and Days in Future to Create Work Orders affect when creation becomes eligible. The associated occurrence must be Pending, and suppression must not apply.
Check planned-work eligibility in order. The occurrence’s Earliest Start Date must fall before the end of the day on which the job runs. Then subtract Lead Time and Days in Future to Create Work Orders from Requested Due By: the run date must be on or after that calculated date. Check the Pending state and suppression separately. An occurrence can pass the date checks and still fail either of those conditions. Work orders are generated only for the next immediate implementation; a manual generation for one occurrence applies to that occurrence alone.
For planned work, review the time zone alongside Run and Time. Selecting a time zone makes the job use that zone; leaving it unspecified uses your time zone. Use System Time Zone selects the instance’s time zone. The maintenance plan’s Next run time does not determine this job’s execution schedule.
The nightly evaluation also accounts for removed assets. If records associated with a maintenance or work plan have been deleted from the related table, the next nightly run removes the plan records associated with those assets. When checking a run, distinguish this cleanup from order creation: a change in associated records may be the expected maintenance result. In the planned-work process, the run also creates the next schedule occurrences after generating work orders for existing occurrences.
Before changing the cadence, compare the intended creation date with the operational deadline. Moving execution earlier will not resolve an occurrence that is still ineligible. For help planning this work, see ServiceNow implementation.
Monitor execution and verify the maintenance result
In Xanadu, open All > System Diagnostics > Scheduled Jobs Dashboard. Use the System Events and Scheduled Jobs dashboard guide for broader dashboard investigation.
Begin with Pending Jobs and Running Jobs to understand whether the work is awaiting execution or actively processing. Then examine completed work. Total Execution Count shows execution volume, and selecting a count opens Scheduled Job History. Average Lateness shows scheduling delay in milliseconds; it does not describe how long the job’s processing took.
Scheduled Job Trends groups completed jobs by classification and includes Execution Count, Average Processing Time(s), and Total Processing Time(s). The default reporting window is the last 24 hours, with data available from the last seven days. Capture the relevant window during investigation so later reviewers know which executions the figures describe.
- Record the job name, intended run time, and expected maintenance output.
- Check whether it appears as pending or running before requesting another execution.
- Inspect execution history and the processing measurements for the relevant period.
- Inspect the application records that should have been created, closed, or maintained.
- Document any difference between execution evidence and the expected business result.
Keep the execution evidence and resulting record checks in the same operating record. Include the reviewer, the observation time, the reason for recovery or deletion, and any follow-up action. That gives the next administrator a concrete starting point when an expected order or lifecycle change is missing. If wait time and processing time suggest a wider issue, continue with platform performance troubleshooting.
Investigate stuck work before requesting another run
Stuck Jobs includes qualifying parent jobs assigned to nodes that no longer exist. A clone can leave jobs pinned to nodes from the source instance. Inspect System ID and Next Action before deciding that a timing change is needed.
Recovering a stuck job clears System ID and allows scheduling to resume according to Next Action. For Permanent Error Jobs, recovery returns the state to Ready so scheduling can proceed. Deleting from these views permanently removes the entry from sys_trigger. Choose recovery or deletion based on the job’s intended future use.
The Lateness column in these lists measures delay against Next Action. A future Next Action produces a lateness value of zero. An overdue value should prompt a check of scheduling and assignment; it does not establish which part of the maintenance logic needs correction.
Before another manual run, reconcile existing output. For planned maintenance, inspect qualifying records and generated orders together. Repeated requests without that check make it harder to explain the result. Where the maintenance objective involves removing data, use the separate delete jobs and recovery guide to plan that work.
Questions about application-specific scheduling choices
Can scheduled scripts be organized by domain?
When Domain Separation is installed, scheduled scripts can be selected, filtered, sorted, and scheduled by their assigned domains. Include the intended domain in the job’s review criteria so that timing and record scope are considered together.
Why might a child table lack a calendar run type?
Day and Month in Year, Day in Week in Month in Year, and Week in Month require visible Day, Month, and Year fields. A child table that does not display those fields cannot create a job using those run types.
Which role activates the Manager Hub user-role job?
Activating Add Manager Hub user role requires sn_mh.admin. An administrator should review the assignment criteria first. The default criterion uses the manager field on sys_user, and subsequent runs consider delta changes when assigning the role to new managers.
Can interaction wrap up have a fallback scheduled job?
Fallback Timeout for Interactions in Wrap Up closes remaining Wrap Up records after Max Wrap Up is exceeded. It starts inactive, with a default five-minute run interval. Max Wrap Up defaults to 15 minutes and must exceed Enforce wrap up duration.