Have the monthly meeting reminder automatically avoid Fridays, Saturdays, and Sundays
E.g. don't allow them to happen on Fri, Sat, Sun.
#5 Updated by sajolida about 2 months ago
Maybe encoding this in a crontab line would be to weird. We could
instead delegate to meeting.rb the "is it time to send an email?"
- run meeting.rb everyday, with a command-line parameter that
triggers the desired behavior, and without --date;
- either teach meeting.rb what the desired behavior is, i.e.
only send email when it thinks it should (based on the algorithm
you've picked); or do the computation by hand for the next 2 years,
write the result in some YAML file, and teach meeting.rb to use
this data as part of its input. With the second way,
each team who wants a meeting reminder can then build their
own schedule (including exceptions to the general rule) manually or
programmatically and feed meeting.rb with it; it requires yet
another Git repo to store the data, giving access to that repo to
the right people, and programming meeting.rb defensively enough, so
it might require a little bit more work.
I think we could (and perhaps should) update the time of the meeting in the current cronjob without waiting for the date to be computed in a more clever way: the former is currently always wrong, while the latter will only occasionally be wrong. sajolida, do you want a ticket for that?