[Solved] Problem with Cron.

[Solved] Problem with Cron.

by Edwin Wachs -
Number of replies: 1

Hello,

I'm a new here and a brazilian developer. I have a work with moodle on FIAP (Brazilian University on Tecnology).

I had one problem on the cron tasks. The local plugin tasks performed one time in a day.

Looking the problem, i seen the code off cron and understood that the schedule task that run the local plugins is named the "legacy_plugin_cron_task" and  with the failed the moodle increments a delay execution time in 60 seconds on the column on the database named "faildelay" on the table "task_scheduled".

My cron had a problem in the one local plugin and break the execution off the cron. With the last 10 or 20 executions, the "falidelay" had 8400 seconds and the cron run one time in day.

I fixed the ploblem with my plugin and put the 0 on the table "task_schedule", and the run working normaly.

So for document.
Thanks a lot.

Average of ratings: Useful (2)
In reply to Edwin Wachs

Re: [Solved] Problem with Cron.

by Karin Lam -

Thank you very much! This helped a lot and solved my problem smile