Skip to content

A few tweaks to QueueBundle.Remove implementation#1240

Open
brandur wants to merge 1 commit intomasterfrom
brandur-queue-bundle-remove-improvements
Open

A few tweaks to QueueBundle.Remove implementation#1240
brandur wants to merge 1 commit intomasterfrom
brandur-queue-bundle-remove-improvements

Conversation

@brandur
Copy link
Copy Markdown
Contributor

@brandur brandur commented May 5, 2026

This builds on #1235 to bring in a few tweaks:

  • Removing a queue is a blocking operation because it needs to wait for
    the producer to finish up its jobs and shut down. It'd be better to
    provide a way for this not to block forever, so here we add a context
    parameter to QueueBundle.Remove similar to the one taken by
    Client.Stop. If the client becomes done before the producer
    resolves, QueueBundle.Remove falls through with the error.

  • Add a "stress" test case for QueueBundle.Remove. It's meant to
    detect a deadlock or other concurrency bug in case there is one and
    gives us a little more confidence that what we have here is right.

  • Renamed addProducer and removeProducer to producerAdd and
    producerRemove so they sort more nicely against each other.

  • Add changelogentry.

This builds on #1235 to bring in a few tweaks:

* Removing a queue is a blocking operation because it needs to wait for
  the producer to finish up its jobs and shut down. It'd be better to
  provide a way for this not to block forever, so here we add a context
  parameter to `QueueBundle.Remove` similar to the one taken by
  `Client.Stop`. If the client becomes done before the producer
  resolves, `QueueBundle.Remove` falls through with the error.

* Add a "stress" test case for `QueueBundle.Remove`. It's meant to
  detect a deadlock or other concurrency bug in case there is one and
  gives us a little more confidence that what we have here is right.

* Renamed `addProducer` and `removeProducer` to `producerAdd` and
  `producerRemove` so they sort more nicely against each other.

* Add changelogentry.
@brandur brandur force-pushed the brandur-queue-bundle-remove-improvements branch from 3f49ca4 to 6438bfc Compare May 5, 2026 11:25
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.

1 participant