You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which causes sending 0 in the catchupWindow property of SchedulePolicy. Hence, server side treats it as 0 and uses MinCatchupWindow (=10 sec) instead of expected DefaultCatchupWindow (=1yr)
Most of time the Temporal server treats zero and unset durations the same, unfortunately it seems like schedules makes a distinction. Probably need to add conversion functions for that preserve null for time conversion.
Expected Behavior
When
java.util.Duration
isnull
in an options class likeSchedulePolicy
it is treated as an unset value in a protobuf message in some casesActual Behavior
null
values are sent as zero duration. There was a TODO in the appropriate method about refactoring this behaviour, but was removed in #1950sdk-java/temporal-sdk/src/main/java/io/temporal/internal/common/ProtobufTimeUtils.java
Lines 43 to 48 in ec18bc8
A problem
I'm creating schedules using the following code:
Which causes sending
0
in thecatchupWindow
property ofSchedulePolicy
. Hence, server side treats it as0
and usesMinCatchupWindow
(=10 sec) instead of expectedDefaultCatchupWindow
(=1yr)https://github.com/temporalio/temporal/blob/aca0d911a908b2584f4cffcc73425c5119dbe722/service/worker/scheduler/workflow.go#L750-L759
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: