Skip to content

Fix IMAP lookup failures in reader#5

Open
giscebot wants to merge 1 commit into
mainfrom
issue-4-imap-lookup-failure
Open

Fix IMAP lookup failures in reader#5
giscebot wants to merge 1 commit into
mainfrom
issue-4-imap-lookup-failure

Conversation

@giscebot

Copy link
Copy Markdown
Collaborator

Summary

  • catch per-UID imaplib.IMAP4.error during IMAP UID FETCH
  • record the latest fetch failure in queue state for operator visibility
  • advance last_uid only for the known Lookup failed case so transient failures are retried
  • add focused reader tests for exception, NO Lookup failed, and non-lookup failures

Task: TASK-91150
Fixes #4

Tests

  • pytest -q tests/test_reader.py tests/test_reader_run.py
  • pytest -q

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.

IMAP4.error: b'Lookup failed 423d73b8af312-310163d197dmb4381437a26'

1 participant