Documentation/Scheduling/Status Definitions
From ScriptRunner
Documentation :: Scheduling :: Time Scheduled Scripts
Batch Instance Statuses
| Status | Definition |
|---|---|
| BUILDING | ScriptRunner is still building this Batch Instance and resolving all dependencies. This is the initial status for all Batch Instances. No jobs will run when in this status. |
| READY | All jobs are either in READY status or AWAITING_DEPENDENCY. |
| RUNNING | At least one job is running, and there are no failed jobs. |
| ERROR | At least one job has failed. |
| COMPLETED | All jobs are either completed or cancelled. |
| ABANDONED | When building the batch instance, no jobs were found to run. |
| ON_HOLD | At least one job is set as MANUAL_HOLD, and no jobs have failed or are currently running. |
Batch Instance Jobs
| Status | Definition |
|---|---|
| BUILDING | ScriptRunner is still building this Batch Job and resolving its dependencies. This is the initial status for all Batch Jobs. The job will not run in this status. |
| READY | The job is ready to run and awaiting a time dependency. |
| AWAITING_DEPENDENCY | The job is awaiting preceding jobs to complete. |
| PREPARING | The job has been selected to run by a controller or agent, and it is currently collecting the required information to run it. |
| WAITING | The job has been selected to run, and it currently waiting for the controller or agent to start it. |
| RUNNING | The job is currently executing. |
| FAILED | The job either had a problem starting, or started and had a return code higher than allowed by the given script. |
| COMPLETED | The job successfully ran and provided a acceptable return code. |
| CANCELLED | The job was either marked as disabled, or was manually cancelled. |
| MANUAL_HOLD | The job has been manually set to this status to prevent it from running. |
Script Statuses
| Status | Definition |
|---|---|
| NOT_STARTED | The script is awaiting to be picked up by an applicable controller or agent. |
| PENDING | The script has been picked up by an applicable controller or agent and it is waiting to be executed. Execution limited on controllers or agents could be prevent it from starting immediately. |
| RUNNING | The script is currently being executed. |
| COMPLETE | The script successfully finished running and had a return code at or below the maximum accepted. |
| ERROR | The script either failed to start, or finished and provided a return code above the maximum accepted. |