Changeset 359 for trunk


Ignore:
Timestamp:
06/08/07 15:08:35 (17 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • fixed bug #22: hanging jobmond when no jobs in batch: removed endless while loop bug and fixed cur_time initialisation thanks to: Bas van der Vlies
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r355 r359  
    585585
    586586                joblist         = {}
    587 
    588                 while len( joblist ) == 0:
    589 
    590                         try:
    591                                 joblist = self.pq.getjobs()
    592 
    593                         except PBSError, detail:
    594 
    595                                 debug_msg( 10, "Caught PBS unavailable, skipping until next polling interval: " + str( detail ) )
    596                                 return None
    597 
    598                 self.cur_time   = time.time()
     587                self.cur_time   = 0
     588
     589                try:
     590                        joblist         = self.pq.getjobs()
     591                        self.cur_time   = time.time()
     592
     593                except PBSError, detail:
     594
     595                        debug_msg( 10, "Caught PBS unavailable, skipping until next polling interval: " + str( detail ) )
     596                        return None
    599597
    600598                jobs_processed  = [ ]
Note: See TracChangeset for help on using the changeset viewer.