Closed kiklop74 closed 1 year ago
If you want I can provide PR.
Cool - thanks! - I've merged that in. I've left this open because I'd like to find some time to investigate why those records weren't cleaned up - just in case we're mising something on activity/course deletion.
flagging this as closed as the cron now deals with this.
Let us assume that you have a 5 reengagement activities and appropriate inprogress records are created. Than for whatever reason one or two activities are deleted before their inprogress records are processed. In such cases scheduled task (cron) ALWAYS fails and never finishes it's work. This is resolved only by manually deleting orphaned records from the table with query like this (mariadb/mysql):
When task fails it outputs something like this:
The fix for this would be to ensure only valid entries for reengagement inporgress are processed.
So this:
Should become this: