Windows Task Stopped and Only Ran PHP for 1 Second
Posted: 14. January 2017 08:53
I have had simulated cron job setup using Windows Task Manager for weeks now and all of a sudden it quit running. I tried creating a new task with identical rules, but it only ran once and PHP.exe terminated after 1 second. I have no clue why it quit. Every Google search I do for stuff like "php 1 second" or "php stops after 1 second" results in articles about how to run php for one second or how to add or subtract a second from a timestamp.
The scheduled task was set to run daily every 15 minutes with the following rule:
C:\xampp\php\php.exe -f C:\xampp\htdocs\wp-cron.php
The user is SYSTEM and every time it runs I get a lot of posts added to mysql complete with a lot of images added to Wordpress. It seemed to have stopped at random last night as I slept and cannot run more than once for one second since.
The scheduled task was set to run daily every 15 minutes with the following rule:
C:\xampp\php\php.exe -f C:\xampp\htdocs\wp-cron.php
The user is SYSTEM and every time it runs I get a lot of posts added to mysql complete with a lot of images added to Wordpress. It seemed to have stopped at random last night as I slept and cannot run more than once for one second since.