-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
prevent task starvation #434
Conversation
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.
Thanks for PR! Here are some comments.
It seems that the travis in develop is broken, I'll take a look.
Fixed, please rebase. |
…etch from original queue was successful, also changed unit test to check for alternating fetches
Had to do some printouts to figure out why the tests were failing. Turns out there were some synchronization issues when creating the tests in a loop, so I changed the test to explicitly schedule and unblock one by one. |
the travis bionic builds initially failed the schedule_at_and_schedule unit test, but they passed after I ran them again. The alternating fetch should not affect the test unless the tasks scheduled using schedule_at become expired. I'll increase the delay on those tests and build again. |
…ests from becoming expired
…eeping_queue_ task is fetched first
LGTM! |
Thanks. Ideally in future we should use virtual time in tests, I've created an issue for that: #435. |
closes #380