General developer forum

Upgrade error after converting cron to scheduled tasks

 
Davo
Re: Upgrade error after converting cron to scheduled tasks
Core developersParticularly helpful MoodlersPlugin developers

Just to confirm, you say that the locations for the classes are:

moodle-mod_newsletter/classes/tasks/process_bounces.php
moodle-mod_newsletter/classes/tasks/send_newsletter.php

Surely that should be:
[main Moodle code directory]/mod/newsletter/classes/task/process_bounces.php

Note both the starting part of the path (/mod/newsletter) and the singular 'task' after classes (which should match the namespace).

 
Average of ratings: Useful (2)
it's me
Re: Upgrade error after converting cron to scheduled tasks
Core developersParticularly helpful MoodlersPlugin developers
Hi Davo,

thank you. That was definitely a case of spot-blindness. As you pointed out, the s was the problem tasks->task works perfect now.

Kind regards,
David
 
Average of ratings: Useful (1)