Skip to content

Conversation

supersven
Copy link
Contributor

@supersven supersven commented Jun 27, 2025

Actually, there isn't much we can do when a queue is externally deleted:

  • There is a loop which handles the reconfiguration according to existing (!) queues
  • Older federation backend versions (V0 and V1) cannot be changed anymore.

To heal the symptoms of detached consumers, I've decreased the cleanup interval for local integration test runs to one Second. That should be a good tradeoff between the time to re-execute tests and not making to many bogus requests to RabbitMQ.

I've also added a test to ensure that reestablishing the consumer works.

Ticket: https://wearezeta.atlassian.net/browse/WPB-17247

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 27, 2025
@supersven supersven force-pushed the sventennie/detached-background-worker-snd-attempt branch from 48e1eae to dc47117 Compare June 27, 2025 16:04
Otherwise, left-overs from previous test runs aren't cleaned on time.
This is of course a tradeoff with wasting CPU cycles for unnecessary
cleanups.

However, this is one of the rare parameters to influence the V0/V1/V2
background-workers without patching old versions.
Clarify what will happen and why it's okay.
@supersven supersven force-pushed the sventennie/detached-background-worker-snd-attempt branch from dc47117 to bb12248 Compare July 17, 2025 09:29
Actually, there's a loop that handles the cleanup. Because the cleanup
logic depends on existing queues, there's not much we can do here.
@supersven supersven marked this pull request as ready for review July 18, 2025 15:04
@supersven supersven requested review from a team as code owners July 18, 2025 15:04
@supersven supersven force-pushed the sventennie/detached-background-worker-snd-attempt branch from e4e400a to 9c38cb4 Compare July 24, 2025 16:23
@supersven supersven force-pushed the sventennie/detached-background-worker-snd-attempt branch from 9c38cb4 to 574d70d Compare July 25, 2025 05:45
@supersven supersven merged commit c05fead into develop Jul 28, 2025
8 checks passed
@supersven supersven deleted the sventennie/detached-background-worker-snd-attempt branch July 28, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants