Custom module won't run
-
Hi,
I tried writing a custom module for the Task Scheduler plugin by basically copy/pasting the code as given in “Other Notes” into my theme’s functions.php (tried both with include and with the class in the same file) and adding a wp_mail into the doAction() function for testing.
Now I can select the module when setting up a new task, but no matter how I set the interval/time, the module never gets called. When I click “Run now”, it apparently gets called, but never runs — the routine says:
Task name:
* Routine instance of my_custom_action
Details:
* Occurrence: Volatile
* Action: Sample Action Module
Status:
* Awaiting
* No thread
* Elapsed 11 minutes (say)
Last run:
* 2016/07/21 12:29:08
Next Run
* 2016/07/21 12:29:08
* Call Count: 2
* Run Count: 0The exact values may of course differ, depending on when and how often I clicked “Run now”. Also, in the Tasks overview, the “Next run” keeps hanging on the time I initially set, even if it’s long overdue.
Do you have any idea what could be causing that issue?
All the best and thanks in advance
Sebastian
The topic ‘Custom module won't run’ is closed to new replies.