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

not working delay for large number seconds(next hour, day, ...) #25

Open
ArtemIsmagilov opened this issue Jan 16, 2024 · 3 comments
Open

Comments

@ArtemIsmagilov
Copy link

ArtemIsmagilov commented Jan 16, 2024

Hi. When i try add litte number seconds in param delay - it working, i await and get execute planing task.
But if i try add large number seconds(next 1 day, next 1 week and etc.) then when the time expires, I do not receive the task execution :(
In dramatiq, everything works.
Ignoring even for 3 minutes

@s3rius
Copy link
Member

s3rius commented Jan 22, 2024

Hi. Sorry for long reply. Instead of using delay which is implemented using hack over AMQP, for large delays please consider using schedulers. Currently we can offer Redis scheduler as a dynamic scheduler which you can populate in runtime.

https://github.com/taskiq-python/taskiq-redis/blob/09e835e4bfbd9e9a50ea4de440d23e6f2e4c5fd1/taskiq_redis/schedule_source.py#L12

@ArtemIsmagilov
Copy link
Author

Ok, thank you

@vvanglro
Copy link
Contributor

Try use rabbitmq-delayed-message-exchange-plugin.

https://github.com/taskiq-python/taskiq-aio-pika?tab=readme-ov-file#retries-with-rabbitmq-delayed-message-exchange-plugin

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

3 participants