Skip to content

Add multi retryRef to action #681

Closed
@lsytj0413

Description

@lsytj0413

What would you like to be added:

In current version, there is only one retry strategy can be assign to action:

"actions": [
            {
              "functionRef": "StorePatient",
              "retryRef": "ServicesNotAvailableRetryStrategy",
              "retryableErrors": ["ServiceNotAvailable"]
            }]

 "retries": [
    {
      "name": "ServicesNotAvailableRetryStrategy",
      "delay": "PT3S",
      "maxAttempts": 10
    }
  ]

If a action can reference multi retry strategy it will be useful.

Why is this needed:

  • amazon states language support multi retry strategy https://states-language.net/spec.html#errors
  • If the action failed, user may want use different retry strategy, for example:
    • delay 1s if the error is short-term(ex: FlowLimit)
    • delay 5s if the error is long-term(ex: database is not available)

Metadata

Metadata

Assignees

Labels

change: featureNew feature or request. Impacts in a minor version change

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions