Hi,
Scheduled nodes works but it depends on cron run. How can we run cron or lightweight cron on exact time of scheduled nodes.

For example
I schedule the publishing of a node to 10:35h
but cron only runs once every 30 minutes
then the content will be published at 11h
How to published exactly 10:35h

Many Thanks

Comments

mudassar774 created an issue. See original summary.

jonathan1055’s picture

Title: How do we call cron or lightweight cron on exactly scheduled Nodes? » How do we call cron or lightweight cron on exactly scheduled node times?
Priority: Major » Normal
Issue summary: View changes

Hi Mudassar,
Scheduler publishes the nodes during cron, as you know. So if you want a node published very precisely at a time which is inbetween existing cron runs you simply need to have cron runs more frequently. There might be an overhead on some sites if the full cron job is run frequently, so this is why we have provided the lightweight cron job scheduler/cron/{access key}. You can set up a crontab to call this url every five minutes, or even every single minute if you really want. It will only do Scheduler processing so is very quick and will not overload your server.

Do you have access to your hosting crontab set-up? Or are you setting up the jobs manualy in a terminal window?
To run the Scheduler cron every 5 minutes the command might look like:

*/5  *  *  *  *  curl http://your-path-to-drupal-root/scheduler/cron/{optional access key} > /dev/null 2>&1

For more help with setting up cron jobs see https://www.drupal.org/docs/7/setting-up-cron

Jonathan

mudassar774’s picture

Hi jonathan

Thanks you very much for your reply. Yes, I have access to cron tab and now bit confident to go with that solution -:)

Mudassar

jonathan1055’s picture

That's good to hear. Let me know if you want any more help with crontab.

jonathan1055’s picture

Status: Active » Closed (works as designed)

I have added that link on setting up cron jobs to the project front page.
Closing this issue now.

xjkwak’s picture

Thank you @jonathan1055. Your comment #2 works for me too!