Skip to content

Replace lambda tenacity.retry patterns with Retrying code blocks#5457

Merged
suhaibmujahid merged 1 commit intomozilla:masterfrom
WooJJam:fix-5423
Nov 14, 2025
Merged

Replace lambda tenacity.retry patterns with Retrying code blocks#5457
suhaibmujahid merged 1 commit intomozilla:masterfrom
WooJJam:fix-5423

Conversation

@WooJJam
Copy link
Contributor

@WooJJam WooJJam commented Nov 14, 2025

This PR implements the change requested in issue #5423 .

Summary

Replaced the pattern of using tenacity.retry(...)(lambda: ...) with the tenacity.Retrying class for retrying code blocks, applying the approach suggested in the issue.

Related Issue

Closed #5423

Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@suhaibmujahid suhaibmujahid merged commit 37b001b into mozilla:master Nov 14, 2025
6 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.

Use tenacity.Retrying to retry code blocks instead of decorating lambda functions

2 participants