My colleague Dan DeFolo, pointed out that one could use tko_jobs for that, 
perhaps with something like that:

select max(finished_time) from tko_jobs where afe_job_id=my_job_id;

Is that reasonable approach to finding out when job ended?

Thanks,
Julius


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Gawlas, Julius
Sent: Thursday, February 21, 2013 9:24 AM
To: [email protected]
Subject: [Autotest] How to determine when the job ended?

This is got to be pretty easy (I hope) - how do we determine when autotest job 
ended? 

Or perhaps how to find out when HostQueueEntry reached one of the 
COMPLETE_STATUSES (from host_queue_entry_states.py). Looking at 
scheduler.scheduler_models.HostQUeueEntry  set_status() and _on_complete it 
appears that they just write to the log but no db entry is created?

Any pointers?

Thanks
Julius

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to