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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cybergrass created an issue. See original summary.

jonathan1055’s picture

Hi Cybergrass,
That's an interesting idea.

the lightweight cron must always be manually run

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

pramod_patil’s picture

Assigned: Unassigned » pramod_patil
pramod_patil’s picture

Assigned: pramod_patil » Unassigned
Status: Active » Needs review
FileSize
1.29 KB

Added a patch for checking scheduled nodes and running cron on page load.

Status: Needs review » Needs work

The last submitted patch, 4: scheduler-auto_cron-2785221-4.patch, failed testing.

jonathan1055’s picture

Title: Alternative method of posting scheduled articles » Alternative method for using Scheduler without running crontab jobs
Status: Needs work » Closed (won't fix)
Issue tags: -scheduler

This 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.