Ejemplo n.º 1
0
 def setManifest(self, manifest):
   if not isinstance(manifest, JobManifest):
     manifestStr = manifest
     manifest = JobManifest()
     result = manifest.load(manifestStr)
     if not result['OK']:
       return result
   manifestJDL = manifest.dumpAsJDL()
   return self.__retryFunction(5, JobState.__db.jobDB.setJobJDL, (self.__jid, manifestJDL))
Ejemplo n.º 2
0
 def setManifest( self, manifest ):
   if not isinstance( manifest, JobManifest ):
     manifestStr = manifest
     manifest = JobManifest()
     result = manifest.load( manifestStr )
     if not result[ 'OK' ]:
       return result
   manifestJDL = manifest.dumpAsJDL()
   if self.localAccess:
     return self.__retryFunction( 5, self.__getDB().setJobJDL, ( self.__jid, manifestJDL ) )
   return self._getStoreClient().setManifest( self.__jid, manifestJDL )
Ejemplo n.º 3
0
 def setManifest( self, manifest ):
   if not isinstance( manifest, JobManifest ):
     manifestStr = manifest
     manifest = JobManifest()
     result = manifest.load( manifestStr )
     if not result[ 'OK' ]:
       return result
   manifestJDL = manifest.dumpAsJDL()
   if self.localAccess:
     return self.__retryFunction( 5, self.__getDB().setJobJDL, ( self.__jid, manifestJDL ) )
   return self._getStoreClient().setManifest( self.__jid, manifestJDL )