Hi,
I did a small test on the lastrun cli command and I see that it shows the job details even if it is not started or failed
As you can see the job - HTTP-V20 is in different application generations in different states. Please let me know if anything else is needed
-> lastrun job("HTTP-V20")
HTTP-V20
Job type: SERVLETV2
Start time:
End time:
Application: MSSQL_SERVER_TEST.3
State: WAITING
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 14:03:19 IST 2023
End time: Tue Jan 24 16:30:21 IST 2023
Application: OPP_XML.3
State: COMPLETE
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 14:03:20 IST 2023
End time: Wed Jan 18 14:03:20 IST 2023
Application: JSON_PUBLIC_RESTAPI.3
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 14:03:19 IST 2023
End time: Wed Jan 18 14:03:19 IST 2023
Application: HEADER_SANDY.3
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 13:06:02 IST 2023
End time: Wed Jan 18 13:06:02 IST 2023
Application: JSON_PUBLIC_RESTAPI.2
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 13:06:02 IST 2023
End time: Wed Jan 18 13:06:02 IST 2023
Application: OPP_XML.2
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 13:06:02 IST 2023
End time: Wed Jan 18 13:06:02 IST 2023
Application: HEADER_SANDY.2
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 12:10:05 IST 2023
End time: Wed Jan 18 12:10:05 IST 2023
Application: JSON_PUBLIC_RESTAPI.1
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 12:10:04 IST 2023
End time: Wed Jan 18 12:10:04 IST 2023
Application: OPP_XML.1
State: SUBERROR
Completion Code:
HTTP-V20
Job type: SERVLETV2
Start time: Wed Jan 18 12:10:03 IST 2023
End time: Wed Jan 18 12:10:03 IST 2023
Application: HEADER_SANDY.1
State: SUBERROR
Completion Code:
- Ravi Kiran
Original Message:
Sent: Jan 23, 2023 12:28 PM
From: DONNA DOMOVIC
Subject: Is there a way to get intermediary runs with LASTRUN vs just last execution
We're in the process of moving more of our application schedules from ESP to d-Series. One of the things that we find useful in ESP is the LTJ job that displays the last 10 runs of a job including start/end time, return code, etc. If within a generation of the application, a job fails and is re-submitted multiple times before successfully completing, the LTJ display will list each of those rather than just the last.
We were trying to find an equivalent in d-Series and thought the LASTRUN CLI command was it but, at least from our testing, while the command does list multiple executins of the requested job, it seems to be limited to the last run from each generation of the application.
Does anyone know if there's a way to get a list of the runs of a job whether they were successful or not?
The reason we're asking this is because the App Teams sometimes contact us, usually after the job has completed, and say that the restart logic isn't working but it's usually related to the job getting a different return code than was specified. If we had a way to list the runs of the job including failed runs, it would be easier to show them why the restart logic wasn't executed.
Once again, thanks for your help with this. Despite asking the question, I'll continue looking to see if I can find something that will work for us.
Thanks,
Donna Domovic