示例#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))
示例#2
0
 def setManifest(self, manifest):
     if not isinstance(manifest, JobManifest):
         jobManifest = JobManifest()
         result = jobManifest.load(str(manifest))
         if not result["OK"]:
             return result
         manifest = jobManifest
     manifest.setDirty()
     self.__manifest = manifest
     self.__manifest.clearDirty()
     return S_OK()
示例#3
0
 def setManifest(self, manifest):
     if not isinstance(manifest, JobManifest):
         jobManifest = JobManifest()
         result = jobManifest.load(str(manifest))
         if not result["OK"]:
             return result
         manifest = jobManifest
     manifest.setDirty()
     self.__manifest = manifest
     # self.__manifest.clearDirty()
     return S_OK()
示例#4
0
文件: JobState.py 项目: bmb/DIRAC
 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 )
示例#5
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 )