Cron takes too long to complete - It stucks on "Running completion_criteria_activity->cron()"

Cron takes too long to complete - It stucks on "Running completion_criteria_activity->cron()"

by Paula Roque -
Number of replies: 1

Hello everyone!

Our cron is running every three minutes but it gets stuck on "Running completion_criteria_activity->cron()" sometimes for over an hour.

Does someone have an idea why this happens?

I would appreciate any help.

Thank you in advance.

Average of ratings: -
In reply to Paula Roque

Re: Cron takes too long to complete - It stucks on "Running completion_criteria_activity->cron()"

by Paula Roque -
I realized that my first sentence may be confuse...
The windows scheduler is set to run the cron job every 3 minutes but since the cron task "Running completion_criteria_activity->cron()" sometimes takes over an hour to complete the next cron job only begins when the previous ends. My question in fact is: if this task is updating students status and lets say, if there are at a given point in time 500 students to update, the #1 student only sees his status updated when the cron task updates the #500 student? Is this a transaction that makes the COMMIT at the #500 student?