Skip to content

fix(revenue-recovery): Prevent penalties when cascading retries exceed limit #9760

@aniketburman014

Description

@aniketburman014

Problem

  • Retries in the cascading workflow were exceeding network limits, risking additional penalties.
  • Hard-decline errors in execute_workflow were preventing the workflow from continuing, even when other cards were available for retry.

Solution

  • Enforce network retry limits to ensure retries do not exceed the allowed maximum.
  • Handle hard-decline errors within calculate_workflow so that the workflow can continue with other available cards.

Impact

  • Prevents extra penalties due to over-retrying.
  • Ensures cascading workflows can properly resume and attempt payments on alternative cards when one fails.

Metadata

Metadata

Labels

C-bugCategory: Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions