Skip to content

Add the ability to cancel the channel without forcing it to close #171

Closed
@avra-m3

Description

I'd like to stop consuming messages when I receive a SIGTERM and wait for some long running tasks to complete and ack/nack. before calling broker.shutdown().

The deferChannelClose option is not workable as it forces me to wait an arbitrary fixed period of time after which if any tasks are still running they can no longer be acknowledged. Is it possible to add a parameter to avoid calling scheduleClose on the channel? or alternatively expose the channel so I can call cancel directly?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions