Open jcpunk opened 2 years ago
Hey @jcpunk :wave:, Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider backing us - every little helps!
We also offer priority support for our sponsors. If you require immediate assistance please consider sponsoring us.
if thats possible in redis the probably yes. i suggest you to dig related code a bit to get some initial idea
https://redis.io/commands/expire looks like the right command set, but I'm at a loss where to tack that on.....
queue is declared in kombu here:
You can see that channel.prepare_queue_arguments()
is needed it needs to be added to kombu/transport/redis.py - see the example in mongo implementation (basically the function needs to be same):
After that you need "just" to implement the logic. You need to add TTL parameter to _new_queue
method:
See the example of mongo implementation:
Current versions of Redis support automatic expires of keys. Can message_ttl support be extended to REDIS instances as well?