DEVPROD-7549: error if creating sleep schedule that is always off #7921
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DEVPROD-7549
Description
Explicitly prevent users from selecting a sleep schedule where the host is off 24/7. While this kind of schedule sounds kind of similar to the option to keep a host off indefinitely when stopping it, it's not really the same because the option to keep a host indefinitely off just means it'll stay off (and ignore the sleep schedule waking hours) until the user chooses to turn it back on. In contrast, a schedule that keeps a host off 24/7 means it should never be awake, and would logically prevent the user from ever turning on their host.
Testing
Documentation
N/A