-
Notifications
You must be signed in to change notification settings - Fork 23
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
Refactor Expire Tasks #510
Conversation
I PR'ed the wrong clone... 🤦 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thanks!
.drain() | ||
.filter(|(_, t)| t.get_status() == Status::Deleted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no -- this line should not have been removed! We're now expiring all old tasks, whether deleted or not!
In GothenburgBitFactory#510, a bug was introduced where _any_ old tsaks would be purged, not just deleted tasks.
In GothenburgBitFactory#510, a bug was introduced where _any_ old tasks would be purged, not just deleted tasks.
* Only expire deleted tasks. In #510, a bug was introduced where _any_ old tasks would be purged, not just deleted tasks. * avoid repeating the string 'deleted'
I wrote a small patch to address #436. This is my first PR so I'm not sure if I did it correctly, but it seems to pass all of the tests?