-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from bbockelm/agis_queues
Overhaul queue generation to actually utilize the queue names
- Loading branch information
Showing
7 changed files
with
238 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/python | ||
|
||
import os | ||
import optparse | ||
|
||
if 'CONDOR_CONFIG' not in os.environ: | ||
os.environ['CONDOR_CONFIG'] = '/etc/condor-ce/condor_config' | ||
import htcondor | ||
|
||
import htcondorce.agis_compat | ||
|
||
def main(): | ||
parser = optparse.OptionParser() | ||
parser.add_option("-p", "--pool", dest="pool", default="collector.opensciencegrid.org") | ||
parser.add_option("-v", "--verbose", dest="verbose", default=False, action="store_true") | ||
opts, args = parser.parse_args() | ||
|
||
if opts.verbose: | ||
if 'TOOL_DEBUG' not in htcondor.param: | ||
htcondor.param['TOOL_DEBUG'] = 'D_FULLDEBUG' | ||
htcondor.enable_debug() | ||
|
||
htcondorce.agis_compat.agis_compat_main(pool=opts.pool) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
import pprint | ||
|
||
import htcondorce.web_utils | ||
|
||
|
||
def agis_compat_main(pool=None): | ||
environ = {} | ||
if pool: | ||
environ['htcondorce.pool'] = pool | ||
pprint.pprint(htcondorce.web_utils.agis_data(environ)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.