Skip to content

Fix update-wikidata not being interruptible during retry_with_backoff#252

Merged
hannahbast merged 6 commits intoqlever-dev:mainfrom
Qup42:fix/updateWikidataInterruption
Mar 2, 2026
Merged

Fix update-wikidata not being interruptible during retry_with_backoff#252
hannahbast merged 6 commits intoqlever-dev:mainfrom
Qup42:fix/updateWikidataInterruption

Conversation

@Qup42
Copy link
Copy Markdown
Collaborator

@Qup42 Qup42 commented Jan 23, 2026

There were two problems which made it extremely annoying to terminate update-wikidata in certain scenarios:

  1. retry_with_backoff did not respect ctrl_c_pressed and continued to retry although a termination was requested
  2. KeyboardInterrupt was raised only after time.sleep in retry_with_backoff, which can take substantial time

Now retry_with_backoff is a member of UpdateWikidataCommand, so that it has access to ctrl_c_pressed. Use Threading.Event for interruptible waiting. This also made the waiting in another place nicer.

@Qup42 Qup42 requested a review from hannahbast January 23, 2026 10:14
@Qup42 Qup42 changed the title Fx update-wikidata not being interruptable Fix update-wikidata not being interruptable Jan 24, 2026
Qup42 and others added 4 commits February 22, 2026 20:30
@hannahbast hannahbast changed the title Fix update-wikidata not being interruptable Fix update-wikidata not being interruptible during retry_with_backoff Mar 2, 2026
@hannahbast hannahbast merged commit a8f9346 into qlever-dev:main Mar 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants