Cron Job Set up in Windows

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

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).

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.


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.

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

September 07, 2016 15:10 PM

Related Questions

Exception on running custom cron groups

Updated November 24, 2017 14:09 PM

Magento Cron is not run on windows

Updated March 20, 2016 08:03 AM