Running cron task in parallel

Running cron task in parallel

by Serge Gauthier -
Number of replies: 0

Since version 2.7 the documentation, indicates that cron can be run in parellel.

We changed our crontab to run the cron every minute as recommended in documentation.

Some tasks take more than a minute to run (they are scheduled 1 or 2 time per day).

When a second cron task starts and reachs the task that is still running we get the following error:

Error code: locktimeout !!

!! Stack trace: * line 461 of /lib/classes/task/manager.php: moodle_exception thrown

* line 66 of /lib/cronlib.php: call to core  ask\manager::get_next_scheduled_task()

* line 61 of /admin/cli/cron.php: call to cron_run()  !!


We were expecting that when a task is still running by a cron when a second cron starts and reaches that task it will ignore it and process the next one.
Is there any configuration to do avoid that error?

Thanks

Average of ratings: -