Changeset 349


Ignore:
Timestamp:
04/27/07 14:51:33 (15 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • removed redundant sleep when PBSError
  • print PBSError when occurs and DEBUG_LEVEL 10
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r348 r349  
    521521       
    522522                joblist = {}
     523
    523524                while len(joblist) == 0:
    524525                        try:
    525526                                joblist = self.pq.getjobs()
    526                         except PBSError:
    527                                 time.sleep( TORQUE_POLL_INTERVAL )
     527                        except PBSError, detail:
     528                                debug_msg( 10, "Caught PBS unavaible, skipping until next polling interval: " + str( detail ) )
     529                                return None
    528530
    529531                self.cur_time = time.time()
Note: See TracChangeset for help on using the changeset viewer.