<#5913 add on failure parameter to imperative work...
# flyte-github
c
#5913 add on failure parameter to imperative workflow Issue created by berriperri ### Motivation: Why do you think this is important? this functionality is in the base class and I don't see why not to expose it to imperative workflows ### Goal: What should the final outcome look like, ideally?
Copy code
class ImperativeWorkflow(WorkflowBase):
  def __init__(
          self,
          name: str,
          failure_policy: Optional[WorkflowFailurePolicy] = None,
          interruptible: bool = False,
          on_failure: Optional[Union[WorkflowBase, Task]] = None,
      ):
### Describe alternatives you've considered no alternatives ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte