4.4 Success and Failure analysis

  1. Navigate to the branch EOD screen. Core Maintenance → Barnch EOD → Invoke EOD.
  2. Enter the branch code.
  3. If the batches have successfully run for that day, below is how it would appear. Here, obcr-task-init and obcr-task-operation are two batches which have completed successfully, hence both are showing green.

    Figure 4-1 Invoke EOD - Branch Code



  4. If there is any failure in the batch, below is how it would appear. Here, obcr-task-operation batch has failed, hence it shows in red.

    Figure 4-2 Invoke EOD - Processing



    In this case, please visit the PLATO_BATCH schema, and execute the below query.

    Select * from PLATO_BATCH_STREAM_RESULTS where JOB_NAME = '<FAILED_JOB_NAME>';
    Here, you would be able to find out which of the streams of the job are in status A (Aborted) or S (Suspended).
    1. If any of the streams are in A status then have a look at the logs for the service, fix the bug and just run the batches again. It would pick-up the execution from the same point where it was aborted.
    2. If any of the streams are in S status then follow below steps.
      • Have a look at the logs and fix the issue.
      • Delete all records from PLATO_BATCH_STREAM_RESULTS table where JOB_NAME = '<FAILED_JOB_NAME>';
      • Check the PLATO_BATCH_STEP_EXECUTION and PLATO_BATCH_JOB_EXECUTION table for any stray records corresponding to this failed job and delete them.
      • Once done, run the batch again.
  5. If there is a milestone present in the execution flow, then the execution would pause at that point, waiting for user input. A button will be made available to the user to click and proceed with the execution. The text on this button will proceed with Run next stage. The same is shown in the diagram below.

    Figure 4-3 Invoke EOD - Run next stage