Skip to main content

SLA Risks

The SLA Risks page warns you before a Job misses its Service Level Agreement (SLA) deadline. JAMS predicts when each Job with an SLA will finish, compares that prediction to the deadline, and lists the Jobs ordered from most to least severe. You can see which runs are in trouble while there is still time to act, instead of finding out after the deadline has passed.

Each prediction is based on the Job's own run history and on its upstream dependencies. If a Job waits for another Job, the predicted finish of that Job becomes the predicted start of the next one, so a delay early in a chain moves every prediction after it.

From the SLA Risks page you can:

  • Filter the list by SLA status or Job name.
  • Open a summary of a run's prediction in the Details drawer.
  • See the reasoning behind a prediction on the Explain Prediction page.
  • See the dependency chain that drives a prediction on the View Chain page.
  • Open the run's Monitor Entry or the Job's Properties.

Declaring an SLA on a Job​

A Job is scored only when it has an SLA. Set one or both of the following properties on the Job's Properties tab, in the Schedule category. See Jobs for more information.

PropertyDescription
SLA TimeThe time of day the Job must complete by, for example 6:00 AM. Use it for a Job that runs once a day.
SLA Max RuntimeThe longest a run may take, measured from the run's own start, for example 00:30:00. Use it for a Job that runs more than once a day, runs longer than a day, or is triggered in a time zone other than the JAMS Scheduler server's.

You can also set either property on a Folder. Every Job in the Folder inherits it. A value set on the Job overrides the Folder's value, and the nearest parent Folder wins. See Folders for more information.

If both properties apply to a Job, SLA Max Runtime is used.

A new or changed SLA is picked up on the next prediction refresh. You do not need to restart any service.

note

JAMS needs at least 3 completed runs of a Job before it scores it. A Job with 3 to 19 completed runs is scored, but its prediction is marked Provisional. Its estimate becomes more reliable as its run history grows.

Opening the SLA Risks page​

Click SLA Risks from the main menu.

The SLA Risks item appears only when the feature is turned on. See Turning SLA Risks on or off.

The As of time under the page title shows when the predictions were last computed. The page refreshes automatically while it is open, and pauses while the browser tab is hidden. Click Refresh in the toolbar to reload it immediately.

You see only the Jobs that you have permission to view. Unless your user type is Root or Administrator, or you bypass ACL security, these are the Jobs in Folders you have permission to open.

SLA statuses​

Each scored run has one of the following statuses. The list is sorted from most to least severe.

StatusMeaning
BreachedThe deadline has already passed and the run did not finish in time. The run may still be executing, may never have started, or may be blocked. Breached reports a miss that has already happened. It is not a warning.
BlockedA required predecessor's last run failed, so the scheduler is holding this run. It cannot start until the predecessor completes successfully or an operator intervenes. No finish time is predicted. A Blocked run whose deadline passes becomes Breached.
Will missThe deadline has not passed yet, but even the earliest possible finish is after it. The run is certain to miss.
At riskThe deadline falls inside the run's predicted finish range, so the run may or may not finish in time.
On trackEven the latest predicted finish is on or before the deadline.
Not scoredJAMS cannot make a reliable prediction for the run. The Status column shows the reason. See Not scored reasons.

The SLA Risk column shows the status, and for an At risk or Will miss run, how far the predicted finish is from the deadline, such as 0:05:29 late. It can also show:

  • Provisional - The Job has fewer than 20 completed runs. Hover over the chip to see how many.
  • A question mark icon - The run sits deep in a dependency chain, so treat its prediction with reduced confidence.

Not scored reasons​

ReasonMeaningWhat to do
No SLA declaredNeither the Job nor any parent Folder has an SLA Time or SLA Max Runtime.Set an SLA Time or SLA Max Runtime. See Declaring an SLA on a Job.
Needs a max-runtime SLAThe Job has no SLA, and an SLA Time cannot describe it because it runs more than once a day, runs longer than a day, or is triggered in another time zone.Set an SLA Max Runtime. The Explain Prediction page suggests a value.
Runs more than once a dayThe Job has an SLA Time, but a single time of day cannot tell which run it applies to.Set an SLA Max Runtime.
Typical run exceeds one dayThe Job has an SLA Time, but its typical run is 24 hours or longer.Set an SLA Max Runtime.
Schedule timezone not supportedThe Job has an SLA Time, but a Trigger runs it in a time zone other than the JAMS Scheduler server's.Set an SLA Max Runtime, which does not depend on the time zone.
Not enough run historyThe Job has fewer than 3 completed runs.Wait for more runs to complete. Do not read this as safe.
Typical run is instantThe Job's typical run takes no measurable time, so there is nothing to predict.None.
Not predicted to runBased on its Triggers and dependencies, the run is not expected to start.None. This is expected for a run that will be skipped.
No predicted start timeThe run has neither an actual nor a predicted start time.None. This usually clears on the next refresh.

Filtering the list​

Use the controls above the grid to narrow the list:

  • Status chips - Click All, Breached, Blocked, Will miss, At risk, or On track to show only runs with that status.
  • Show not scored (N) - Turn on the switch to include Not scored runs. N is the number of Not scored runs that match the Job name filter. The switch is available only when All is selected.
  • Filter by job name - Type part of a Job name to show only matching Jobs. The filter is not case sensitive.

SLA Risks columns​

ColumnDescription
Job IDThe ID of the Job.
Job NameThe name of the Job.
RunWhich run of the Job the prediction is for. See Run values.
SLA RiskThe run's SLA status. See SLA statuses.
SLA DeadlineThe deadline the run is measured against. For an SLA Max Runtime, it shows the budget, such as within 0:30:00 of start. Hover over it to see the exact deadline.
Predicted FinishWhen the run is expected to finish. Hover over it to see the earliest and latest predicted finish.
StatusThe reason a run is Not scored. Blank for scored runs.
ActionsThe row's actions menu. See Row actions.

Each scored row has a colored left edge that matches its status.

Run values​

Hover over a Run value to see a description.

RunMeaning
Current runThe run is executing now.
Scheduled runThe run has a Monitor Entry but has not started yet.
Future runThe run is predicted but has not been submitted, so it has no Monitor Entry yet.
Future run · after JobThe run is predicted to start after the named Job completes. It has no Monitor Entry yet.
Cannot start · Job failedThe named predecessor's last run failed, so the scheduler is holding this run.
Not predictedNo combination of Triggers and dependencies currently predicts that the Job will run.

If the predecessor is a Job you do not have permission to view, its name is replaced with unavailable job or a restricted job.

Row actions​

Click the ⋮ button in the Actions column to open a row's actions menu:

  • View Details - Opens the Details drawer. You can also double-click the row. See View Details.
  • Explain Prediction - Opens the Explain Prediction page. See Explain Prediction.
  • View Chain - Opens the View Chain page. See View Chain.
  • View Monitor Entry - Opens the run's Monitor Entry on its SLA Risk tab. This action is available only when the run has a Monitor Entry. See Monitor for more information.
  • Properties - Opens the Job's definition, where its SLA properties are set. You can also select a row and click Properties in the toolbar.

View Details​

The Details drawer summarizes a run's prediction without leaving the list. It shows:

  • The run's status chips and, for a Not scored run, the reason.
  • Monitor Entry - A link to the run's Monitor Entry, when one exists.
  • Start - The run's start time. For an SLA Max Runtime, this is the actual start if the run has started.
  • SLA Deadline - The deadline the run is measured against.
  • Predicted Finish - When the run is expected to finish.
  • Finish Band - The earliest and latest predicted finish.
  • Upstream jobs affecting this forecast - The predecessors whose timing affects this run's prediction, with each one's predicted or actual finish. A predecessor marked Delay-driving sets when the next Job can start. A Job you do not have permission to view is listed as Restricted dependency. Its timing still counts.

The upstream list includes only predecessors that affect the current prediction, not every configured dependency. For example, once a triggered Job is executing, its Trigger no longer gates the run, so the list can be empty.

For a Job with an SLA Max Runtime whose typical run is under about five minutes, the drawer shows Typical Run in place of Predicted Finish and Finish Band. These runs finish too quickly for a live prediction, so JAMS instead reports when a run exceeds its budget.

Click Open full explanation to open the Explain Prediction page.

Explain Prediction​

The SLA Prediction Explanation page shows why JAMS made the prediction it did. Open it from a row's actions menu, or click Open full explanation in the Details drawer.

The top of the page shows the Job name, the run's status chips, and a one-line verdict, such as Predicted to finish 0:12:00 before the 6:00 AM deadline. It also shows the time remaining to the deadline, a link to the Monitor Entry, and where the SLA comes from: the Job itself, or the Folder it is inherited from.

Forecast against deadline​

A timeline chart plots the scheduled and predicted start, the predicted finish range, the deadline, and the current time. The finish range is shaded to show whether it falls before or after the deadline.

If the Job does not yet have enough run history, the chart says so instead of drawing a finish range.

For a Job with an SLA Max Runtime whose typical run is under about five minutes, the chart is replaced by Runtime against budget, which compares the typical run time to the budget.

Why this prediction​

This section breaks the prediction into cards. A card appears only when it applies to the run.

CardShows
StartWhat determines the run's start: its own schedule, an upstream Job that gates it, or a failed predecessor that blocks it. It also shows the predicted release time and how far the start has slipped past its scheduled time.
Run historyStatistics from the Job's recent completed runs: the median, P75, and higher percentiles as the history supports them, and the range from fastest to slowest. It notes how many runs the statistics are based on.
Last runWhether the previous run met its deadline, comparing its initial forecast and latest estimate to its actual finish. It also shows the Job's track record: how many scored runs met their deadline, and the typical forecast error.
Running nowFor a run that is executing, how long it has been running and how that compares to past runs.
ConfidenceHow far the run is from a directly scheduled Job in the dependency chain, and how the status should be read.
Why not scoredFor a Not scored run, the reason and what to do about it. When the fix is an SLA Max Runtime, it suggests a budget based on the Job's run history.

Use the toolbar to open View Chain or the Job's Properties, or click Refresh. Click SLA Risks in the breadcrumb to return to the list.

View Chain​

The SLA Dependency Chain page shows the upstream Jobs that a run depends on, and which of them drive its predicted finish. Open it from a row's actions menu or from the Explain Prediction toolbar.

The summary at the top shows the Job's status, its deadline, and its predicted or actual finish.

Dependency chain is a graph of the run and its predecessors. Each node shows the Job's status, such as Running, Finished, Held, Retrying, or Failed, and its predicted finish. The Delay-driving path highlights the predecessors predicted to set this run's finish time. A delay anywhere on that path pushes the finish later.

Edges into the same Job that carry different letters are alternative start conditions: any one of them can start the Job. Edges with the same letter must all complete.

To navigate the graph:

  • Click Fit view to show the whole chain.
  • Use Find job to zoom to a Job.
  • Drag the graph to explore it.

Timeline against deadline plots each Job in the chain as a bar against the deadline, showing its predicted run and the time elapsed so far.

Click a Job in the graph or the timeline to see its status, start, finish, and deadline, and whether it is on the delay-driving path.

If the run completes or rolls over to its next occurrence while the page is open, the page keeps showing the last known chain and tells you it is no longer being tracked. When a newer occurrence is available, click View newer occurrence to switch to it. The Explain Prediction page behaves the same way.

SLA email alerts​

JAMS can send an email when a run's SLA is in trouble. Alerts are delivered through the Job's own Send Email Schedule:

  1. Add or edit a Send Email Schedule on the Job, or on a parent Folder. See Events and Notifications for the steps.
  2. Select the Receive SLA Alerts checkbox.
  3. Save the Schedule Item.

JAMS sends one alert per run, when the run first becomes Will miss, Blocked, or Breached. If a run finishes after its deadline without an earlier alert, a Breached alert is sent. No follow-up email is sent if the run recovers or gets worse. Alerts are sent only for runs that have a Monitor Entry.

SLA email alerts are off until an administrator turns them on in the JAMS API configuration. See Configuring SLA Risks. While they are off, the SLA Risks page shows the message SLA email alerts are turned off. No one is notified when a deadline is at risk. To enable them, contact your JAMS administrator.

Configuring SLA Risks​

SLA Risks is configured in the "Sla" section of the JAMS API configuration file, at C:\Program Files\JAMS\JAMS API\appsettings.json by default. There is no setting for it on the JAMS Web Client's Configuration screen.

Configuration OptionDescription
Projection:ModeTurns the SLA Risks feature on or off. See Turning SLA Risks on or off.
Notifications:EnabledSet to true to send SLA email alerts. The default is false. Changes take effect without restarting the JAMS API service.
Notifications:NotifyOnAtRiskSet to true to also send the first alert when a run becomes At risk. The default is false.

Turning SLA Risks on or off​

The Projection:Mode option takes one of three values:

ModePredictionsSLA Risks page
OffNot computed.Hidden.
ShadowComputed and recorded, but not shown.Hidden.
ShowComputed and recorded.Shown in the main menu.

To change the mode:

  1. Open C:\Program Files\JAMS\JAMS API\appsettings.json.
  2. Set "Sla:Projection:Mode" to Off, Shadow, or Show.
  3. Save the file.
  4. Open the Windows Services application and restart the JAMS API service.
"Sla": {
"Projection": {
"Mode": "Show"
},
"Notifications": {
"Enabled": true,
"NotifyOnAtRisk": false
}
}

When the mode is not Show, the SLA Risks item is removed from the main menu, and the Monitor no longer shows SLA statuses or the SLA Risk tab. If you open an SLA Risks page directly, it displays the message SLA Risks is not enabled in this environment. Contact your JAMS administrator.

SLA email alerts are sent only when Notifications:Enabled is true and the mode is Show.

Additional Items​

  • JAMS JAX. When you select a row, the Job is passed to JAMS JAX as context, so you can ask JAMS JAX why the run is at risk. JAMS JAX reads the same predictions. See JAMS JAX for more information.
  • Restricted Jobs. A Job you do not have permission to view is hidden from the list. When it appears in another Job's chain, it is shown as Restricted dependency, without its name. Its timing still affects the prediction.
  • Permission changes. A change to a Folder's ACL can take up to one refresh to show on the SLA Risks page.
  • Next occurrence. When a run completes, the row moves to the Job's next run, whose deadline is usually the next day. A row changing status right after a run completes is expected.