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))
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()
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()
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 )