When I run cron jobs using the scheduler plugin, it seems no notice is taken of an entered end date i.e. the jobs continue to run past the date. I am using this code:
plugins.scheduler.addCronJob(job_name, cron_timings, globals[method_name],start_date , end_date, [method_arguments])
… where start_date and end_date are normal datetime fields. Under testing the jobs run fine but don’t stop
In order to test I am entering a datetime 2 or 3 minutes into the future for a job that triggers every 30 seconds. I have also tried entering an end date for yesterday and the jobs still fire.
If anyone can shed some light I would be grateful!