Skip to content

Allow for continuous publishing of messages to RabbitMQ test queue in selected intervals#226

Merged
zroubalik merged 1 commit intokedacore:mainfrom
mgs2:feat/rabitmq-allow-continuous-publishing
Sep 18, 2025
Merged

Allow for continuous publishing of messages to RabbitMQ test queue in selected intervals#226
zroubalik merged 1 commit intokedacore:mainfrom
mgs2:feat/rabitmq-allow-continuous-publishing

Conversation

@mgs2
Copy link
Contributor

@mgs2 mgs2 commented Aug 28, 2025

By default send command ends its job after sending specified number of messages on to the RabbitMQ test queue. This change allows to repeatedly send number of messages in given interval (in seconds), allowing to simulate constant messages publication. It is necessary for E2E tests that validate DeliverGetRate, PublishedToDeliveredRatio and ExpectedQueueConsumptionTime trigger modes in RabbitMQ scaler.

To use this feature, complete list of arguments must be provided to send command, where the fourth one represents interval value. No value for interval implies default operation model (send and quit).

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)
  • A PR is opened to update the documentation on our docs repo

References:

Signed-off-by: Wojciech Moczulski <wojciech.moczulski@stormlabs.eu>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the RabbitMQ test utility to support continuous message publishing at specified intervals, enabling simulation of constant message flow for E2E testing of advanced RabbitMQ scaler trigger modes.

  • Adds support for continuous message publishing with configurable intervals
  • Maintains backward compatibility with existing single-batch publishing behavior
  • Introduces interval-based loop control for sustained message generation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zroubalik zroubalik merged commit 983e364 into kedacore:main Sep 18, 2025
9 checks passed
@mgs2 mgs2 deleted the feat/rabitmq-allow-continuous-publishing branch October 6, 2025 16:17
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.

3 participants