This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

I have changed the time interval of my scheduled task in my plugin from every minute to every five minutes. But the scheduler is still running the task every minute. Do I have to clear any sort of cache? I have tried almost all the cache clear command.

alxy
alxy

Is your schedule:run task somehow running in a daemon mode? Maybe you need to restart it then.

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

alxy said:

Is your schedule:run task somehow running in a daemon mode? Maybe you need to restart it then.

I remember doing something with the --deamon command. But I can not find any documentation on the octobercms docs. Do you know which command I can use to restart the schedule deamon?

alxy
alxy

There are several way to set this schedule trask up, the official docs can be found here: http://octobercms.com/docs/setup/installation#crontab-setup

You can always list your php processes and see if you find a very long running php process.

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

alxy said:

There are several way to set this schedule trask up, the official docs can be found here: http://octobercms.com/docs/setup/installation#crontab-setup

You can always list your php processes and see if you find a very long running php process.

I have this * php /path/to/artisan schedule:run >> /dev/null 2>&1 added to my crontab. But does this have some kind of cache? Because this task is running every minute, the system should know that it has changed the interval to every five minutes.

pjoneid30887
pjoneid30887

I have the same question. what is daemon mode? and why my cron doesn't change from every minute to every month?

$schedule->call(function () { //send email.... })->monthly();

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.