I have a job I need to run once at year during a specific month.
Is it possible to configure during what month cronplus_yearly() will run?
We can select what hour and weekday to run in the admin but there are no options for month.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | cronplus-preferred-month-1109530-3.patch | 3.7 KB | NROTC_Webmaster |
Comments
Comment #1
syscrusher commentedWow...yearly, huh?
I never even considered the possibility someone would want to have that long a time span.
I'll need to take a look at the code; this may not be a hard patch.
Comment #2
cluke009 commentedI ended up just making this particular feature manually triggered rather than using cronplus. I still think this would be a useful feature to include especially if its easy to implement.
I was looking to use this on a site for students to run a couple account related things over the summer break. I am sure there are other users out there that would like to implement similar things for yearly events school related functions. Using it to send reminder emails or account upgrades after a years membership etc..
Comment #3
NROTC_Webmaster commentedI know this is old but I made a patch that should do what you are looking for. Test it out and see if it meets your needs.
Comment #4
NROTC_Webmaster commentedI did find one error in the patch
The line for
should instead be
I will try to upload a new patch later.