Consumer: Implement graceful closure

Open
#38 0 comments 0 reactions 1 assignee View on GitHub

@DanielePalaia is already working on this.

Since Feb 13, 2025.

Assessment

This issue has not been assessed yet.

Description

enhancement
Is your feature request related to a problem? Please describe.

The consumer needs to implement a unsettled_message_count in order to allow a graceful shutdown.

Example from Java:

// pause the delivery of messages
consumer.pause();
// ensure the number of unsettled messages reaches 0
long unsettledMessageCount = consumer.unsettledMessageCount();
// close the consumer
consumer.close();
Describe the solution you'd like

Graceful closure to be implemented

Describe alternatives you've considered

No response

Additional context

No response

Dominant language
Python
Stars
47
Forks
13
Avg merge
7h 44m
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rabbitmq/rabbitmq-amqp-python-client

All issues in rabbitmq/rabbitmq-amqp-python-client

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.