Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

add discovery upload retries#182

Merged
JannikSt merged 1 commit into
developfrom
fix/worker-crash-when-discovery-down
Mar 28, 2025
Merged

add discovery upload retries#182
JannikSt merged 1 commit into
developfrom
fix/worker-crash-when-discovery-down

Conversation

@JannikSt
Copy link
Copy Markdown
Member

fixes #117

@JannikSt JannikSt requested review from Copilot and mattdf March 28, 2025 00:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a retry mechanism for uploading discovery information to address intermittent failures (fixes #117).

  • Introduces a retry loop using a hardcoded maximum of 100 attempts
  • Adds logging for each failed attempt and sleeps for 10 seconds between retries
Comments suppressed due to low confidence (1)

worker/src/cli/command.rs:515

  • [nitpick] Consider adding a final error log before exiting to explicitly indicate that the maximum retry attempts have been reached.
if attempts >= max_attempts {

@JannikSt JannikSt merged commit 17368a1 into develop Mar 28, 2025
JannikSt added a commit that referenced this pull request Apr 12, 2025
@JannikSt JannikSt deleted the fix/worker-crash-when-discovery-down branch June 25, 2025 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worker fails when discovery svc is down

3 participants