Skip to content

Commit

Permalink
Don't relegate unimplemented jobs to dead letter queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jan 14, 2024
1 parent 3e2eeae commit 92c8bb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yellowstone/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def process_job(self, job: JobDict) -> None:
raise NotImplementedError
case JobType.INDEX_SITE_MEMBERS:
raise NotImplementedError
except NotImplementedError:
logger.error(
"Job hit not-yet-implemented component, not increasing attempt count",
exc_info=True,
)
except Exception as _:
logger.error("Error occurred while processing job", exc_info=True)
if job["attempts"] < MAX_RETRIES:
Expand Down

0 comments on commit 92c8bb1

Please sign in to comment.