Topic on User talk:Magnus Manske

Jump to navigation Jump to search

Freezing bugs in QuickStatements

8
Solidest (talkcontribs)

Over the past few months, the manual batch mode in QS has started to freeze regularly. When this happens, the current edit hangs in the "run" status and the batch just freezes indefinitely. This is bug #1. There is no connection between the jobs themselves - this can happen when adding any property statement or editing a label on an empty item.

Bug #2. When the above case happens - you can restart the queue by pressing STOP and RUN again. The task will be restarted, but the item on which the freeze occurred will remain in the "run" status forever. So after the batch is finished - these cannot be restarted in any way because they are not listed in errors and do not appear in "init" listing. The only way to track them is to manually search for "run" on each page, which is quite annoying for large batches. At the moment with 1k batches it happens about 10 times. And it seems like the only way is not to use manual mode or to run the batch twice in a row.

Solidest (talkcontribs)

I suppose it would be great if at least the "Try to reset errors" button would also take into account those that remain in the "run" status.

Epìdosis (talkcontribs)

I confirm experiencing both bugs, and I agree with Solidest that solving at least #2 (if possible, also #1) would be of great help. Thanks!

Magnus Manske (talkcontribs)

Hi all, just back from Covid now. #2 should be fixed (untested but seems trivial).

  1. 1 seems difficult to replicate; I'll look into it.
Solidest (talkcontribs)

Glad you're back well, and sorry to bother you. But the fix has not helped. Tasks in "run" status are still not detected after clicking "Try to reset errors" and remain undone. UPD: It worked correctly in another browser. So maybe it just required clearing the cache.

And I suppose error #1 should not be that hard to reproduce. As it happens with every 200+ edits manual batch. For example, in https://editgroups.toolforge.org/b/QSv2T/1720448250160/ I had it triggered 6 times. Tried different batches on Chrome and Firefox, with and without VPN. No changes, it always happens at least once in ~100 edits (without fixed frequency - it could be three times in 30 edits, or could be 1 time in 200). Each time it was an instant response with a 502 error "Webservice is unreachable". And it is not marked with an error and retry is not done either, the queue just hangs.

Solidest (talkcontribs)

I've just managed to reproduce the bug by repeating the same 100% completed batch - it still hangs and stops regularly. You could try running it as well: https://nopaste.net/egbIelbe9t

Magnus Manske (talkcontribs)

This seems to be caused by the webservice throwing 502 erros for some reason. I put an error mitigation in place, it will re-try 5 times with 2sec delay. Your example still throws 4 errors but they are of a different kind, and reset-able.

Solidest (talkcontribs)

Thank you! Now the problem seems to be completely fixed. However, there is a small side effect that I have not seen before - it is rare errors occurring with the reason "Edit conflict. Could not patch the current revision." But they are handled by clicking "try to reset errors" at the end.