Esempio n. 1
0
 def signResult(self, result: EDASDataset, request: TaskRequest, node: WorkflowNode, **kwargs ) -> EDASDataset:
     result["proj"] = request.project
     result["exp"] = request.experiment
     result["uid"] = str(request.uid)
     for key,value in kwargs.items(): result[key] = value
     archive = node.getParm("archive")
     if archive: result["archive"] = archive
     if node.isBranch:
         result.persist()
     return result
Esempio n. 2
0
 def testOptions(self, node: WorkflowNode):
     for option in self.requiredOptions:
         assert node.findParm(
             option, None
         ) is not None, "Option re[{}] is required for the {} kernel".format(
             option, self.name)
Esempio n. 3
0
 def getCacheStatus(self, node: WorkflowNode) -> int:
     return CacheStatus.parse(node.getParm("cache"))