DEV Community

Filimonov
Filimonov

Posted on

Adding a command to the ISP Manager scheduler

I recently encountered a task where I need the Cron to run every minute. Within ISP Manager and Drupal 8 I did it as follows.

Disable the Automated Cron module:

drush pm-uninstall automated_cron
Enter fullscreen mode Exit fullscreen mode

Go to the ISP Manager. In the sidebar, click on "Scheduler

Image description

The next command will run the cron for Drupal 8:

export HOME=/var/www/user/data/www/site.ru/web; /usr/local/bin/drush cron --quiet --root=$HOME
Enter fullscreen mode Exit fullscreen mode

Switch the schedule to expert mode. If we want the cron to start every minute - specify * everywhere.

Image description

Click Ok.
Now the cron or another command you specify will run every minute.

Top comments (0)