Difference between revisions of "Documentation/Scheduling/Batch Schedule Operations"

From ScriptRunner
Jump to: navigation, search
m
m
Line 34: Line 34:
 
* Click [[File: setStatus.png]] next to the  relevant failed batch job.
 
* Click [[File: setStatus.png]] next to the  relevant failed batch job.
  
* An input box will now be displayed to allow you select the desired job status, either Cancelled or Ready. Selecting Cancelled will effective skip the job and allow downstream jobs to continue. Selecting Ready will tell ScriptRunner to re-try the job. Once a status has been selected, click [[File: ok.png]].
+
* An input box will now be displayed to allow you select the desired job status, either Cancelled or Ready. Selecting Cancelled will effective skip the job and allow downstream jobs to continue. Selecting Ready will tell ScriptRunner to re-try the job. Once a status has been selected, click [[File: okButton.png]].
 
<br/><br />
 
<br/><br />
[[File: setStatusInput.png]]]
+
[[File: setStatusInput.png]]
 
<br /><br />
 
<br /><br />
 
* The job will now be in the desired status, and this should automatically reflect in the Batch Instance Jobs Status window.
 
* The job will now be in the desired status, and this should automatically reflect in the Batch Instance Jobs Status window.

Revision as of 17:07, 10 October 2020


Documentation :: Scheduling :: Batch Schedule Operations

The Batch Schedule Operations screen provides an overview of all Batch Schedule Instances and their current status, as well as screen to view and manage the status of all their jobs. This is the main screen to manage the operation of your Batch Schedules.

To access Batch Schedule Operations, from the menu select Schedules > Batch Schedules > Batch Schedule Operations.


ViewBatchScheduleOperations.png


To view the status of the individual jobs within a Batch Instance, click ViewJobs.png.


ViewBatchInstanceJobs.png


The meaning of each status can be found here .

The following actions are available for each job:

  • Set Status: Click this to change the status of the job. This generally allows you to hold or unhold a job, or cancel a job outright. This option will not be available when a script is running or has been completed or cancelled.
  • Dependencies: This allows you to view what other jobs need to complete first before the selected job can start. Click Break.png if you need to remove the dependency for that specific run of the job.
  • View Output: This allows you to view the log output of a job. This will only be available once a job has started. If a job has been restarted to a previous failure, only logs from the latest run of the job will be available through this button.


Restarting or Cancelling a Failed Job

Should a job fail, you must either set the job to CANCELLED status or restart the job to allow any following jobs to continue (unless they have been set to allow failures). This can be done through either the Batch Schedule Operation or View Overall Status screens.

To do this in the Batch Schedule Operations screen:

  • From the menu, select Schedules > Batch Schedules > Batch Schedule Operations.
  • Click ViewJobs.png next to the relevant Batch Schedule. You can use the status filter to only view jobs in ERROR if needed.
  • Click SetStatus.png next to the relevant failed batch job.
  • An input box will now be displayed to allow you select the desired job status, either Cancelled or Ready. Selecting Cancelled will effective skip the job and allow downstream jobs to continue. Selecting Ready will tell ScriptRunner to re-try the job. Once a status has been selected, click File:OkButton.png.



File:SetStatusInput.png

  • The job will now be in the desired status, and this should automatically reflect in the Batch Instance Jobs Status window.