Skip to content

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Nov 24, 2025

If timeout is not set to True, the task will only be reported and not retried.

timeout_exceptions: tuple[type[BaseException], ...]
timeout_exceptions = (ProcessingDeadlineExceeded,)
if not timeouts:
timeout_exceptions = ()

except timeout_exceptions:
if timeouts:
with sentry_sdk.isolation_scope() as scope:
task_state = current_task()
if task_state:
scope.fingerprint = [
"task.processing_deadline_exceeded",
task_state.namespace,
task_state.taskname,
]
sentry_sdk.capture_exception(level="info")
retry_task(raise_on_no_retries=raise_on_no_retries)
else:
raise

This issue is an example of the task not being retried.

If `timeout` is not set to True, the task will only be reported and not retried.
@armenzg armenzg self-assigned this Nov 24, 2025
@armenzg armenzg requested a review from a team as a code owner November 24, 2025 14:53
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 24, 2025
@armenzg armenzg merged commit cf6cb2d into master Nov 24, 2025
66 of 67 checks passed
@armenzg armenzg deleted the 11_24/enable_retrying_task/armenzg branch November 24, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants