Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring Delay and Schedule Message Delivery #27

Open
gaurav-bhasin opened this issue Aug 12, 2022 · 2 comments
Open

Configuring Delay and Schedule Message Delivery #27

gaurav-bhasin opened this issue Aug 12, 2022 · 2 comments

Comments

@gaurav-bhasin
Copy link

Hello,

Is there a way to configure Delay and Schedule Message Delivery in Aiostomp?
In this document https://activemq.apache.org/delay-and-schedule-message-delivery it says the broker supports scheduled delay of messages being sent to consumer using a header config AMQ_SCHEDULED_DELAY, but I can't seem to find the actual header key to implement the same with Aiostomp library.

Can anyone please tell me if the library supports this functionality?

Thanks,
Gaurav

@pedrokiefer
Copy link
Owner

Theres a dictionary on the send method where you can add headers, something like this should work:

client.send("/queue/test", body=u"My message", headers={
    "AMQ_SCHEDULED_DELAY": 60000,
})```

@pedrokiefer
Copy link
Owner

@gaurav-bhasin did it work? can I close this issue?

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

No branches or pull requests

2 participants