I solved it! I had link a bad url to
schedd :)
El 01/07/2013 18:01, Fernando escribió:
Hello! I can send a Job throught SOAP but if I try to look the job
status it throw me the follow error and I cant understand it,
could you help me?
NOTE: when I save the transaction and use the same transaction as
I used for submit my job it works fine, if I create a new
transaction doesnt work.
I am using suds and python:
The error:
No handlers could be found for logger "suds.client"
Traceback (most recent call last):
File "claseFinal.py", line 384, in <module>
print
controller.jobStatus(trabajo.clusterId(),trabajo.jobId())
File "claseFinal.py", line 267, in jobStatus
t = self.__schedd.service.beginTransaction(5)
File
"/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py",
line 542, in __call__
return client.invoke(args, kwargs)
File
"/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py",
line 602, in invoke
result = self.send(soapenv)
File
"/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py",
line 649, in send
result = self.failed(binding, e)
File
"/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py",
line 702, in failed
r, p = binding.get_fault(reply)
File
"/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/bindings/binding.py",
line 265, in get_fault
raise WebFault(p, faultroot)
suds.WebFault: Server raised fault: 'Method 'ns0:beginTransaction'
not implemented: method name or namespace not recognized'
my code:
def jobStatus(self,clusterId, jobId):
try:
t = self.__schedd.service.beginTransaction(5)
except:
raise
NameError('TransactionError')
jobTemp = self.__schedd.service.getJobAd(t.transaction,
clusterId, jobId )
for asd in jobTemp.classAd.item:
if asd.name == "JobStatus":
return int(asd.value)
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/
|