Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Birthdays module can (optionally) send "Happy birthday" mails to users on their birthdays. Currently we just have hook_cron()
, checking if one day has passed since the last cron run and sending the mails. We're looking to use the Job Scheduler module to do this, instead.
Now, before I start integrating it, is there a way to #1364422: Allow Admin to Configure what time of day messages are sent?
Comment | File | Size | Author |
---|---|---|---|
#3 | ultimate_cron.png | 104.93 KB | manu manu |
Comments
Comment #1
joachim CreditAttribution: joachim commentedPresumably you'd use the crontab system in this module, and set it to run daily at the time you want messages to be sent.
Your job callback then does the task of finding out which user(s) to send a message to that day, if any.
Comment #2
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedAh, thanks! A generic UI would be awesome, so that the user can schedule jobs (the periodic crontab ones, maybe only when a marker is set) in a custom way.
Comment #3
manu manuIt may help you: I'm using Ultimate Cron to manage jobs and queues execution.
Attached a screenshot with a working example.
However, it would be very cool to have a GUI to see the Job Scheduler internal infos: what jobs are planned at what frequency...