Skip to content

Conversation

claude[bot]
Copy link
Contributor

@claude claude bot commented Aug 19, 2025

Summary

Implemented retry logic in the get_step_of_flow_status function using the backon library for additional resilience as requested in issue #6410.

Changes

  • Added backon import statements to windmill-queue/src/flow_status.rs
  • Wrapped the database query in retry logic with constant backoff
  • Configuration: 500ms delay between retries, maximum of 3 attempts
  • Added warning logs for retry attempts to aid in debugging
  • Follows existing codebase patterns used throughout the project

Implementation Details

The retry logic specifically addresses potential failures in:

  • Database connection issues
  • Temporary query execution problems
  • Network-related database connectivity issues

The implementation uses:

  • Retry Strategy: Constant backoff (500ms delays)
  • Max Attempts: 3 retries
  • Logging: Warning logs on retry attempts with error details and timing
  • Pattern: Consistent with other backon usage in the codebase

Testing

The changes follow the established patterns used elsewhere in the windmill codebase for retry logic. The SQLx query structure remains unchanged, only wrapped with retry functionality.

Resolves #6410


Generated with Claude Code

- Added backon retry with constant backoff (500ms delay, max 3 retries)
- Added warning logs for retry attempts to aid debugging
- Follows existing codebase patterns for retry resilience
- Improves reliability when fetching flow status information

Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
@claude claude bot mentioned this pull request Aug 19, 2025
Copy link

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a82904
Status: ✅  Deploy successful!
Preview URL: https://33be8f07.windmill.pages.dev
Branch Preview URL: https://claude-issue-6410-20250819-0.windmill.pages.dev

View logs

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.

more retries

0 participants