uber-go / cadence-client

Framework for authoring workflows and activities running on top of the Cadence orchestration engine.

Home Page:https://cadenceworkflow.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MethodRetry - maximumAttempts is a Required Parameter

bw-abrowne opened this issue · comments

Describe the bug
An IllegalArgumentException occurs if maximumAttempts is not passed for an activity's MethodRetry

To Reproduce
Is the issue reproducible?

  • Yes

Steps to reproduce the behavior:
Don't pass maximumAttempts; seen when initialIntervalSeconds, backoffCoefficient, maximumIntervalSeconds, and expirationSeconds are all populated.

Expected behavior
The default value of maximumAttempts (0) should be used and an IllegalArgumentException should not be thrown.

Additional context
Additionally, the concepts documentation includes inconsistent parameter names as compared to the Java client