-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ActivityScheduleTimeout deduction logic (#822)
This commit relaxes validateActivityScheduleAttributes by having it fill in some of the fields related to schedule timeouts if they are empty. The logic used is identical to the logic used in AWS SWF's java client. The logic is as follows: If ScheduleToClose is present and ScheduleToStart or StartToClose is missing, we will set what is missing to ScheduleToClose. If ScheduleToClose is missing but both ScheduleToStart and StartToClose are present, we will set ScheduleToClose to the sum of ScheduleToStart and StartToClose.
- Loading branch information
Showing
2 changed files
with
148 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters