Hi. I love scheduler with one exception -- the lightweight cron must always be manually run.
Here's a neat trick that I've used for scheduled events that you may want to incorporate into a future release of scheduler for Drupal.
Whenever a site gets a hit, check the date/time and see if there are any pending articles or pages to post. If there are, post them before the home page loads. The nodes are already there so its just a matter of toggling the status which takes virtually no time. This eliminates the lightweight cron and provides full functionality for those of us on virtualized and limited servers where cron is not an option.
Anyway, its just an idea and the price is right! :)
Bob
Comment | File | Size | Author |
---|---|---|---|
#4 | scheduler-auto_cron-2785221-4.patch | 1.29 KB | pramod_patil |
Comments
Comment #2
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedHi Cybergrass,
That's an interesting idea.
I suppose there are hosting companies or servers where you cannot run cron. But I would say a better option is to move to a host where you can run cron. It is very limiting if you have no cron functionality at all.
Do you have an example of the code you've written to do this work? Which hook functions are you using?
Jonathan
Comment #3
pramod_patil CreditAttribution: pramod_patil as a volunteer and at Faichi Solutions Pvt Ltd for Faichi Solutions Pvt Ltd commentedComment #4
pramod_patil CreditAttribution: pramod_patil as a volunteer and at Faichi Solutions Pvt Ltd for Faichi Solutions Pvt Ltd commentedAdded a patch for checking scheduled nodes and running cron on page load.
Comment #6
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThis does actuallly work. The test failure is only because a call to
scheduler_cron()
has been done earlier in the testing process that is expected. The patch still applies to the latest 7.x dev.It is a neat idea for those who cannot run any cron processes. However, there are other alternatives for running without cron. This new functionality would have to be disabled by default and turned on with a Scheduler admin option. If anyone wants to work on this, and also discuss how/whether we need to consider it for 8.x then please re-open this issue.