Changeset 854
- Timestamp:
- 05/13/13 22:27:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/jobmond/jobmond.py
r853 r854 2080 2080 2081 2081 global PBSQuery, PBSError, lsfObject, pyslurm 2082 global SYSLOG_FACILITY, USE_SYSLOG, BATCH_API, DAEMONIZE 2082 global SYSLOG_FACILITY, USE_SYSLOG, BATCH_API, DAEMONIZE, BATCH_SERVER 2083 2083 2084 2084 if not processArgs( sys.argv[1:] ): … … 2096 2096 except ImportError, details: 2097 2097 2098 print "FATAL ERROR: BATCH_API set to 'pbs' but python module 'pbs_python' cannot be loaded"2098 print "FATAL ERROR: BATCH_API set to 'pbs' but python module 'pbs_python' is not found or installed" 2099 2099 print details 2100 2100 sys.exit( 1 ) … … 2103 2103 2104 2104 elif BATCH_API == 'sge': 2105 2106 if BATCH_SERVER != 'localhost': 2107 2108 # Print and log, but continue execution 2109 err_msg = "WARNING: BATCH_API 'sge' ignores BATCH_SERVER (can only be 'localhost')" 2110 print err_msg 2111 debug_msg( 0, err_msg ) 2105 2112 2106 2113 # Tested with SGE 6.0u11. … … 2110 2117 elif BATCH_API == 'lsf': 2111 2118 2119 if BATCH_SERVER != 'localhost': 2120 2121 # Print and log, but continue execution 2122 err_msg = "WARNING: BATCH_API 'lsf' ignores BATCH_SERVER (can only be 'localhost')" 2123 print err_msg 2124 debug_msg( 0, err_msg ) 2125 2112 2126 try: 2113 2127 from lsfObject import lsfObject 2114 2128 except: 2115 print "FATAL ERROR: BATCH_API set to 'lsf' but python module is not found or installed"2116 sys.exit( 1 )2129 print "FATAL ERROR: BATCH_API set to 'lsf' but python module 'lsfObject' is not found or installed" 2130 sys.exit( 1 ) 2117 2131 2118 2132 gather = LsfDataGatherer() 2119 2133 2120 2134 elif BATCH_API == 'slurm': 2135 2136 if BATCH_SERVER != 'localhost': 2137 2138 # Print and log, but continue execution 2139 err_msg = "WARNING: BATCH_API 'slurm' ignores BATCH_SERVER (can only be 'localhost')" 2140 print err_msg 2141 debug_msg( 0, err_msg ) 2121 2142 2122 2143 try: … … 2124 2145 except: 2125 2146 print "FATAL ERROR: BATCH_API set to 'slurm' but python module is not found or installed" 2126 sys.exit( 1 )2147 sys.exit( 1 ) 2127 2148 2128 2149 gather = SLURMDataGatherer()
Note: See TracChangeset
for help on using the changeset viewer.