Hi Pete,
Sounds good, Still not convinced with the time for each of the scheduled WF.
Those times are within seconds as if the scheduler object was reset.
select oh_name as SCHEDULE,
ah_idnr,
oh_idnr,
ah_timestamp1 as act_time,
ah_timestamp2 as start_time,
ah_timestamp3 as end_time1,
ah_timestamp4 as End_time2
, jpp_object as OBJECT
, JPP_ErlstStTime as STARTTIME
, COALESCE(jppc_calekeyname , 'EVERYDAY') as CALENDAR
, DECODE(oh_inactive, 1, 'In-Active', 0,'Active') as Status
from jsuser.oh
left join jsuser.ah on ah.ah_oh_idnr = oh_idnr
inner join jsuser.jpp
on oh_idnr = jpp_oh_idnr
left outer join jsuser.jppc
on jppc_jpp_lnr = jpp_lnr and jppc_oh_idnr = oh_idnr
where oh_otype = 'JSCH' and jsuser.oh.oh_name like 'SCHD_NAME%'
order by start_time desc;
I want to pull all the executions of the workflow or jobs that are scheduled / recurring starting with e.g ABC%
I found some time in AJPP if we add that GMT those sound more like realistic times as they closely match to the execution times that show in the UI.
Do we have a close enough query that is used for the atomic to display in the process monitoring view based on the search?
Thanks
Vijay
Original Message:
Sent: 06-24-2020 03:15 PM
From: Pete Wirfs
Subject: Tables or query for job executions
AH is the correct table. The timestamps are all stored as GMT values, so the product can easily support multiple timezones.
Ours is on SQLServer and I use this sort of logic to translate the AH timestamps to local time;
, dateadd(hour, datediff(hour, getutcdate(), getdate()), ah_timestamp2) as start_time , dateadd(hour, datediff(hour, getutcdate(), getdate()), ah_timestamp4) as End_time
Further descriptions of AH columns can be found here;
https://docs.automic.com/documentation/WEBHELP/English/all/components/AE/latest/DB%20Schema/db/_structure/HTML/index.htm
------------------------------
Pete Wirfs
SAIF Corporation
Salem Oregon USA
Original Message:
Sent: 06-24-2020 03:04 PM
From: Vijay Chaganti
Subject: Tables or query for job executions
Hi,
Can I get the query or the tables that have the right information to pull all the job executions for recurring as well as JSCH.
Similar to the Automic UI that displays all the job executions based on the object name we specify.
The AH table timestamp values do not match the execution of each job, they look more like scheduler reset every day, not each of the job execution time and duration that looks similar to the UI.
I want the query or tables that the Automic team might be used to display the executions.
This is required as we need to pull these to Data Lake for further analysis.
Thanks