Cron Job Set up in Windows

by tim.baker   Last Updated September 07, 2016 08:05 AM

How can I set up Magento 2 cron jobs to work on a Windows server?

I can make the cron tasks run in a similar way to this or by calling the file directly (as far as I can tell this works).

yoursite.com/update/cron.php

However when trying to do extension installs Magento thinks that the cron process is not running (Magento docs on this issue). How can I make it know it is running?



Answers 3


This can be solved by running the correct command line task from the base magento install directory.

setup:cron:run

Make sure that your installs all use the same version of PHP and that the XSL extension is enabled otherwise this will cause issues as well.

tim.baker
tim.baker
September 07, 2016 12:58 PM

If you want to run cron job directly without having to wait for the schedule, you can use

n98-magerun2 sys:cron:run <job name>
Rahul Singh
Rahul Singh
September 07, 2016 13:08 PM

You can simply run the following command line:
php magento-installation-directory/bin/magento cron:run

You can also create cron job to run at a certain time interval if u dont want to run this command manually everytime

seilena
seilena
September 07, 2016 15:10 PM

Related Questions



Exception on running custom cron groups

Updated November 24, 2017 14:09 PM