-
Notifications
You must be signed in to change notification settings - Fork 120
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
vine: mainloop improvements #3387
vine: mainloop improvements #3387
Conversation
This makes sense so far, but I will wait to merge until making the next release... |
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.
Looks good overall, one thing to make tunable.
Status on this one? |
@dthain I will add the tune option and then it should be good to go |
do not merge yet, investigating issue |
bug fixed in #3412 |
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.
Almost there, last few things.
@colinthomas-z80 don't forget this one... |
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.
On the right track, but we need extra care in ensuring each task is in one list at a time.
Please stop by to talk, I think it's easier to explain in person... |
@dthain I moved the mechanism of removing/adding to any task state list to change_task_state. There are a few separate scenarios where we might change tasks to VINE_TASK_RETRIEVED so that motivates keeping list operations in a single place. |
Ah, I think you took my advice in the opposite direction. Your code assumes that a task always marches through the states linearly from READY to DONE.
So, I don't think it is quite right for I think what you want here is for each action in the code to remove a task from a data structure, consider what to do with it, and then either put it back or call Under that model, |
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.
Almost there
WIP