-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: distance-based task distribution logic #119
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 @Ayush5120. There are quite some comments I made. Please address those and let's have another round of review after.
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.
Great - we're getting there! :)
I think all the remaining issues are small fry that shouldn't take long to address
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 a lot @Ayush5120. I didn't try it out, really, but it looks good to me and I will merge it. I hope edge cases (e.g., no inputs at all) will work. But if not, we can fix them after merging. Note that I have opened #124 to handle middleware more gracefully and generically. It's not an urgent issue, though - we can take care of it after #123 and #122.
Hi @Ayush5120. Thanks a lot for the great work :) I am merging now, as I guess you have addressed at least most of the comments (and I have opened #124). If there are any more issues popping up during testing, we can open individual issues for them and fix them :) In the future, I think it's best if you resolve open conversations yourself if you feel confident that you have addressed them non-controversially. Otherwise, please leave a comment, either describing how you addressed it, or why you did not address it. That makes reviewing a whole lot easier. |
Added task distribution logic, that computes the total distance between the set of input URIs (from the incoming TES task) and the available TES instances, then relays the task to the closest TES instance.