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
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)
def getCacheStatus(self, node: WorkflowNode) -> int: return CacheStatus.parse(node.getParm("cache"))