Closed safwank closed 7 years ago
@joakimk Bueller? :)
I've finally got around to reviewing all this. Looks great.
Merged it in and added a readme section and credits to you for this feature.
I found one bug though when testing this manually and doing recovery of old jobs after a restart. I've fix that one in https://github.com/joakimk/toniq/commit/d9174ee273cae20945f438df9bb24cc1860ea1a7.
Since it adds a feature without breaking the existing API (as far as I can see), I bumped the middle version and released it as 1.2.0.
Is this your twitter handle? https://twitter.com/safwandoterl
I thought I'd mention you in a tweet about toniq 1.2.0 if that's ok?
Oh, awesome!
I found one bug though when testing this manually and doing recovery of old jobs after a restart. I've fix that one in d9174ee.
Really good catch!
I thought I'd mention you in a tweet about toniq 1.2.0 if that's ok?
Sure.
As per our conversation, here's a summary of how it works:
Toniq.enqueue_with_delay/3
:infinity
)GenServer
calledDelayedJobTracker
that tracks delayed jobs and flushes them when they expireI'll update the README once you've accepted the PR.