Reintroduce comparison between ARC-CE and condor_q
Begin arcbot message
This merge request is automatically copied from GitHub next pull request https://github.com/nordugrid/arc/pull/1 orginally made by @jnc74743
End arcbot message
With commit https://github.com/nordugrid/arc/commit/c7a676873a9f3c4703a4a4a7e6209513e456cad8, the logic to compare job state with condor_q
and job state in /var/spool/arc/jobstatus/processing
was lost. This caused every job to be considered finished when the script /usr/share/arc/scan-condor-job
ran.
This regression is corrected in this commit by reintroducing the lrms_list_jobs
function and having it run when the function scan_init
is called. The scan_init
is purposefully removed from the previous for-loop as not to overwhelm busy Condor schedd's with multiple condor_q
requests
During the scan_main
function call, a comparison is done where the condor_q
list is compared with what ARC see's in /var/spool/arc/jobstatus/processing
, if there isn't a match, the job has finished in Condor and the script can continue, if not, exit the script cleanly.