コード例 #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
ファイル: CachedJobState.py プロジェクト: TaykYoku/DIRAC
 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 )