Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
kfconsultant
Contributor
Contributor

"Load Duration" is difference between GUI vs API (bug?)

In Attunity Enterprise Manager (AEM), I noticed that the load durations are difference between GUI vs API. It looks like it only affects when load duration is greater than 10 hours. 

Steps to view load duration from GUI:

1.  Login to https://{host}/attunityenterprisemanager/6.4.0.515

2. view tasks> pick a task > double click > Monitor > completed

3. Check the "Load Duration"

Steps to check load duration from API:

req.get(url=api_base_url + f'servers/Attunity-replicate/tasks/MY-TASK-1', headers=headers, verify=False)
json_obj = json.loads(req.text)
start_time = json_obj["full_load_start"]
end_time = json_obj["full_load_end"]

---------------------------

Task#1 = Correct duration

GUI = 07:44:57

 --------API info -------

start time = 2020-02-26T03:51:19

end time = 2020-02-26T11:36:16

Difference: 7:44:57

---------------------------

---------------------------

Task#2 = INCORRECT duration

GUI = 10:29:51

 --------API info -------

start time = 2020-02-26T03:52:07

end time = 2020-02-27T02:21:58

Difference: 22:29:51

---------------------------

---------------------------

Task#3 = INCORRECT duration

GUI = 13:00:21

 --------API info -------

start time = 2020-02-26T03:52:08

end time = 2020-02-27T04:52:29

Difference: 1 day, 1:00:21

---------------------------

Let me know if I miss anything on how to calculate the differences or it is a defect.

d1 = datetime.strptime(start_time, '%Y-%m-%dT%H:%M:%S')
d2 = datetime.strptime(end_time, '%Y-%m-%dT%H:%M:%S')
Difference = (d2 - d1)

 

1 Solution

Accepted Solutions
1 Reply
Ola_Mayer
Employee
Employee