Example #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))
Example #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()
Example #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()
Example #4
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 )
Example #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 )