catalyst / moodle-tool_crawler

A moodle link crawling robot, find broken, slow and oversized links
https://moodle.org/plugins/tool_crawler
10 stars 18 forks source link

Adhoc task failed - Attempt to assign property "endcrawl" on bool #185

Open matthewhilton opened 1 month ago

matthewhilton commented 1 month ago

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