def to_flyte_idl(self): """ :rtype: flyteidl.core.workflow_pb2.WorkflowMetadata """ workflow_metadata = _core_workflow.WorkflowMetadata() if self.on_failure: workflow_metadata.on_failure = self.on_failure return workflow_metadata
def to_flyte_idl(self): """ :rtype: flyteidl.core.workflow_pb2.WorkflowMetadata """ workflow_metadata = _core_workflow.WorkflowMetadata() if self._queuing_budget: workflow_metadata.queuing_budget.FromTimedelta(self.queuing_budget) return workflow_metadata
def to_flyte_idl(self): """ :rtype: flyteidl.core.workflow_pb2.WorkflowMetadata """ return _core_workflow.WorkflowMetadata()