Scheduling Cron Task

Hi, i’ve used cron jobs for years on previous C5 sites, but I can’'t get them working on my first v9 site. My host restricts jobs to running at max every 15 minutes will this be the problem? it says when enabling that:

If you enable scheduling, you must ensure that the scheduling worker runs every minute.

or am I using the wrong command?

*/15 * * * * /usr/local/bin/php -q /home/sitename/public_html/concrete/bin/concrete schedule:run >> /dev/null 2>&1

Not sure if that is correct, I always use

>/dev/null 2>&1

in my cron jobs

So i’m getting this response:

#!/usr/bin/env php

There are no commands defined in the “schedule” namespace.

Did you mean this?

EDIT I don’t think the cron tasks are working on version 9!

Ok, so I have this working now… what you need is this:

/usr/local/bin/php -q /home/sitename/public_html/concrete/bin/concrete concrete:scheduler:run >> /dev/null 2>&1

Note: concrete:scheduler:run

Thank-you, This solved my problem as well. :grinning:

1 Like