Skip to content

feat: add per-task types_of_exceptions#651

Open
spikeninja wants to merge 1 commit into
masterfrom
feat/add-per-task-retry-exceptions
Open

feat: add per-task types_of_exceptions#651
spikeninja wants to merge 1 commit into
masterfrom
feat/add-per-task-retry-exceptions

Conversation

@spikeninja

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.48%. Comparing base (ae2b788) to head (5cae04c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #651      +/-   ##
==========================================
+ Coverage   81.29%   81.48%   +0.19%     
==========================================
  Files          69       69              
  Lines        2577     2593      +16     
==========================================
+ Hits         2095     2113      +18     
+ Misses        482      480       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@s3rius

s3rius commented Jul 24, 2026

Copy link
Copy Markdown
Member

Can you please test out what happens when you send a task with a tuple of exceptions in labels using some distributed brokers? I wonder what type will it end up with?

:param message: Original task message.
:return: Effective exception types or None.
"""
task = self.broker.find_task(message.task_name)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A regular label belongs to a specific message. It is produced by the producer, passed through the broker, and can be overridden via .kicker().with_labels(...).

In contrast, types_of_exceptions is effectively part of the task definition on the worker side. The value passed with the message is not used for any decision-making.

It seems to me that this results in the task labels being silently lost before the retry.

The same issue exists in simple_retry_middleware.py:44

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.

3 participants