which indicates the $history record does not exist and is being queried from the db but not being returned.
Not sure if this is a logic issue in the code or if its a db replica lag issue
Its possible the get_config is returning a time for crawlstart that was never inserted into the db, hence it looks like it is stuck looking for a record that will never exist
I was able to fix the task manually by using the "clear progress" page/button
I believe it is this line:
https://github.com/catalyst/moodle-tool_crawler/blob/c7a50c06dcd83ed3e7d289cfdf1928d8caa5e6e7/lib.php#L87
which indicates the $history record does not exist and is being queried from the db but not being returned.
Not sure if this is a logic issue in the code or if its a db replica lag issue
Its possible the get_config is returning a time for crawlstart that was never inserted into the db, hence it looks like it is stuck looking for a record that will never exist
I was able to fix the task manually by using the "clear progress" page/button