How to use ebs.recover.continuation to allow Aria Automation to run subsequent subscriptions on an event if the action/workflow fails.
search cancel

How to use ebs.recover.continuation to allow Aria Automation to run subsequent subscriptions on an event if the action/workflow fails.

book

Article ID: 371291

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

The property ebs.recover.continuation is used to tell a subscription in Aria Automation  if it should  to continue to the next subscription on the same event if the workflow/action fails. The recovery workflow on a blocking subscription will return ebs.recovery.continuation equil to CONTINUE to continue or STOP to stop. The intent of this this recovery workflow is more of a cleanup action rather then recovering a failure. It could be used to delete AD entries or release IP addresses when the workflow/action fails. 

 

Environment

Aria Automation 8.x

Cause

This is more of a description of how the ebs.recover.contunation works rather then an issue with the product. 

Resolution

In order to tell Aria Automation to know if it should move on and run the next subscription on an event the subscription needs to be blocking and the recovery workflow/action needs to set ebs.recovery.continuation to either STOP or CONTINUE. Below is an example of python actions that do these things. 

 

def handler(context, inputs):
    greeting = "Hello, {0}!".format(inputs["target"])
    print(greeting)

    outputs = {
      "greeting": greeting
    }
    
    outputs["ebs.recover.continuation"] = "STOP"

    return outputs

def handler(context, inputs):
    greeting = "Hello, {0}!".format(inputs["target"])
    print(greeting)

    outputs = {
      "greeting": greeting
    }
    
    outputs["ebs.recover.continuation"] = "CONTINUE"

    return outputs