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

In regards to the issue with the delay queue #1400

Closed
XyJoinIt opened this issue Sep 10, 2023 · 4 comments
Closed

In regards to the issue with the delay queue #1400

XyJoinIt opened this issue Sep 10, 2023 · 4 comments
Labels

Comments

@XyJoinIt
Copy link

In regards to the issue with the delay queue: Currently, when I use the delay queue parameter TimeSpan.FromSeconds(N) with N < 60, it calculates the delay in seconds. However, if I set N = 100, it should execute the action after 100 seconds, but currently, it executes after only 10 seconds.

@yang-xiaodong
Copy link
Member

Hello,
I can't reproduce your issue, please report your version and configuration and how to reproduce?

@XyJoinIt
Copy link
Author

Hello, I can't reproduce your issue, please report your version and configuration and how to reproduce?

The theoretical execution order should be 10s -> 30s -> 59s-> 60s-> 61s ->70s->100s -> 2 minutes. However, my test results are currently showing 10s -> 30s -> 61s and 100s and 2 minutes and 70s ->59s ->60s The issue may be related to operations taking longer than 60 seconds. I am using RabbitMQ and MongoDB for the following test demo. I hope this information is helpful。

version
image

demo:
image

image

@XyJoinIt
Copy link
Author

theoretical

and configuration
image

@yang-xiaodong
Copy link
Member

Because MongoDB stores UTC time zone by default, just change the default serialization to local time.

BsonSerializer.RegisterSerializer(DateTimeSerializer.LocalInstance);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants