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

Add support for policy definition consumer-timeout as a integer #970

Open
Turgon37 opened this issue Feb 9, 2024 · 0 comments
Open

Add support for policy definition consumer-timeout as a integer #970

Turgon37 opened this issue Feb 9, 2024 · 0 comments

Comments

@Turgon37
Copy link

Turgon37 commented Feb 9, 2024

In a way analog to #557, can we add support for new consumer-timeout policy definition according to documentation https://rabbitmq.com/consumers.html#acknowledgement-timeout

How to reproduce (e.g Puppet code you use)

rabbitmq_policy { 'longtimeout':
    pattern  => 'train_learning_version'
    applyto => 'queues'
    definition:
      consumer-timeout: '86400000'

What are you seeing

Error: Execution of '/usr/sbin/rabbitmqctl set_policy -p bot01 --priority 20 --apply-to queues longtimeout train_learning_version {"consumer-timeout":"86400000"}' returned 69: Setting policy "longtimeout" for pattern "train_learning_version" to "{"consumer-timeout":"86400000"}" with priority "20" for vhost "bot01" ...
Error:
Validation failed
<<"86400000">> is not a valid consumer timeout

What behaviour did you expect instead

Notice: /Stage[main]/Rabbitmq_policy[longtimeout]/ensure: created

Output log

Any additional information you'd like to impart

If I type it using integer format it works

[DC01] root@ai-broker01-u01.dc01 ~ # /usr/sbin/rabbitmqctl set_policy -p bot01 --priority 20 --apply-to queues queues-federation-with-long-timeout-for-dc02 train_learning_version '{"federation-upstream":"federation-to-ai-broker01-uat-dc02-bot01","consumer-timeout":86400000}'
Setting policy "longtimeout" for pattern "train_learning_version" to "{"consumer-timeout":86400000}" with priority "20" for vhost "bot01" ...
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

1 participant