Skip to content

[WORKFLOW SDK BUG] Activity RetryPolicy is not used when activity call is wrapped in a try/exception block #797

@marcduiker

Description

@marcduiker

Expected Behavior

When activities are using a retry policy and a try/except block is used, the except block code is executed only when the activity has been retried according to the retry policy. So if there is a RetryPolicy with max_number_of_attempts=3, the exception block is ran after 3 activity execution attempts.

Actual Behavior

When activities are using a retry policy and a try/except block is used, the except block code is immediately run once the activity fails. The activity is not being retried.

Steps to Reproduce the Problem

Run this Python app

Release Note

RELEASE NOTE: Workflow respects activity retries when a try/exception block is used.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions