Skip to content

[Redis] Messages sent with incorrect delivery delay #737

Closed
@niels-nijens

Description

@niels-nijens

When sending a message with a delay (in seconds) to the Redis transport the following happens:

  1. The delay is provided in seconds. For example 5 seconds.
  2. The deliveryDelay is set on a new RedisProducer by the RedisDriver in milliseconds based on the delay of the message.
  3. The deliveryDelay (in milliseconds) is added to time() (in seconds). Resulting in a delay of 83 minutes and 20 seconds instead of 5 seconds. See the RedisProducer.

Step 3 should divide the deliveryDelay milliseconds back to seconds before adding it to time().

If you'd like, I can provide a PR with the necessary change(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions