[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] Problem with SOAP and beginTransaction

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):
            t = self.__schedd.service.beginTransaction(5)
        jobTemp = self.__schedd.service.getJobAd(t.transaction, clusterId, jobId )
        for asd in jobTemp.classAd.item:
            if asd.name == "JobStatus":
                return int(asd.value)