I have my code running as a K8 pod. The pod can get bounced etc. I have a requirement that say I have a scheduler that wakes up every 15 minutes and runs business logic which is diff for
- 15 minute boundary
- 30 minute boundary
- 60 minute boundary
- Midnight. The midnight is say always UTC midnight.
If pod scheduler starts operating at say 13:03, the next boundary will fall at 13:08, and so on and so forth. How do I round this thing in the easiest way without worrying about too many if-else
checks?