-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate release date on continuous queues manager
Before performing the job tasks, we need to make sure that the release date is properly configured. This can be simply done by making sure that the current date is not well past the end of the on-sync date, which is calculated by adding 4 weeks to the configured release date. (Normally, on-sync ends 2 weeks after the release, but it's set to 4 weeks in this patch just in case we have an unusually longer on-sync period.) This commit also moves the parameter validation part to its own function, so it can be tested on its own. Additional validation to ensure that the `lastweekdate` is not set after the `releasedate` has also been added.
- Loading branch information
1 parent
8399dca
commit 601e6fb
Showing
2 changed files
with
37 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