[keyserver] Automatically create daily update threads
Summary:
This way we don't need a human manually setting it up every time.
Depends on D6333
Test Plan:
I deployed this to my keyserver in production and tested with patches like this where I:
- Overrode the cron time to get it to run when I wanted
- Overrode the current date to test how it would work on specific dates
- Made it create test threads in a channel nobody else could see
I tested the following scenarios:
- Script runs on Monday and there is no event in calendar (thread was not created)
- Script runs on Monday and there is an event in calendar indicating dev sync is on Tuesday (thread was created)
- Script runs on Tuesday and there is no event in calendar (thread was created)
- Script runs on Tuesday and there is an event in calendar indicating dev sync is on Tuesday (thread was not created)
Reviewers: atul, ginsu
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D6334