Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 595289 Details for
Bug 799838
Jobs in IDLE or RUNNING state aren't visible via aviary API after HISTORY_INTERVAL period.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Helpful script for testing this bz.
bz799383.py (text/x-python), 1.56 KB, created by
Daniel Horák
on 2012-06-29 12:18:40 UTC
(
hide
)
Description:
Helpful script for testing this bz.
Filename:
MIME Type:
Creator:
Daniel Horák
Created:
2012-06-29 12:18:40 UTC
Size:
1.56 KB
patch
obsolete
>#!/usr/bin/env python >""" >This script print each (10) seconds list of jobs from AVIARY (with status) >and output of condor_q and condor_history commands. >""" >import suds >import time >import subprocess >import urllib2 > >#import logging >#logging.getLogger('suds.transport').setLevel(logging.DEBUG) >#logging.getLogger('suds.transport').addHandler(logging.FileHandler('/tmp/suds.log')) > >def timestamp(timeFormat="[%H:%M:%S]"): > return time.strftime(timeFormat) > >def runCmd(cmd): > """ run command """ > proc = subprocess.Popen(cmd) > return proc.wait() > >QUERY_URL = 'http://localhost:9091/services/query/%s' >QUERY_WSDL = 'file:/var/lib/condor/aviary/services/query/aviary-query.wsdl' >cl_timeout = 10000 >client = suds.client.Client(QUERY_WSDL, timeout=cl_timeout) > >def main(): > print "Press Ctrl+c to exit." > while True: > print "=="*30 > print timestamp() > > # print pid of aviary_query_server > print "pidof aviary_query_server:" > runCmd(['pidof', 'aviary_query_server']) > > # get jobs from aviary > client.set_options(location=(QUERY_URL % 'getJobStatus')) > print "FROM AVIARY:" > try: > result = client.service.getJobStatus() > > for job in result: > print "# %s (%s)\t" % ( job.id.job, job.job_status) > except urllib2.URLError, err: > print "PROBLEM: %s" % err > > # run condor_q > print "FROM condor_q:" > runCmd('condor_q') > # run condor_history > print "FROM condor_history:" > runCmd('condor_history') > > print "--"*30 > time.sleep(10) > > >if __name__ == '__main__': > try: > main() > except KeyboardInterrupt, err: > print "Exiting" > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 799838
: 595289