I have a daily scheduled task successfully running on the site I am working on, which is great. However, I need to implement another scheduled task at a different frequency, so I created a task subclassing the QuarterHourlyTask and set the cron to run every 15 minutes. I implemented it exactly the same way as the daily task except for the different parent.
However, if I execute on the command line:
/path/to/php /path/to/webroot/sapphire/cli-script.php QuarterHourlyTask
is echoed implying that my subclass was not found. I've rebuilt the manifest.
Looking at CliController, it takes the class specified, finds all the subclasses and loops through them, echoing out the classname as it goes. Works fine for DailyTask. If, via a browser, I create a test function to list out the subclasses of QuarterHourlyTask, my task is listed, however when running from the command line, it isn't found.
Works fine on my local environment.
Anyone had this sort of thing and sorted it? It is probably something simple, but at the minute I just can see it.