Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def wrapper(*args, **kwargs):
return func(*args, **kwargs)
except Exception as e:
logging.error(f"Function {func.__name__} failed: {e}")
if i == 2:
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

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

The hardcoded value '2' creates a magic number that's unclear. Consider using a variable like 'max_retries - 1' or adding a comment to explain that this represents the final retry attempt.

Copilot uses AI. Check for mistakes.
raise
time.sleep(5)

return wrapper
Expand Down