Closed dmitrypol closed 6 years ago
Hey @dmitrypol!
Apologies for super late reply, this looks really great! I only have some notes about the text in readme, but will adjust after merging :)
And yeah, this is a good time to switch to actual Redis servers to test TTL.
@dmitrypol this is now released in version 1.1.0 :1st_place_medal:
Thanks for merging it. Completely understand slow response, life is busy.
Per discussion in https://github.com/chaps-io/gush/issues/26 here is a first attempt at expiring workflow keys. Please consider for including this feature in the library or modify as appropriate.
I added a test for Client.expire_workflow but I think fakeredis TTL does not work quite the same as Redis (had issues w it in the past).
On separate note I updated README with suggestion on how to check whether workflow is running w particular class name. Helps avoid overlapping workflow same class.
Dmitry