Skip to content

feat: distance-based task distribution logic - #119

Merged
uniqueg merged 13 commits into
devfrom
feature
Jan 26, 2023
Merged

uniqueg merged 13 commits into
devfrom
feature

Conversation

@Ayush5120

Copy link
Copy Markdown
Contributor

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.

@Ayush5120 Ayush5120 self-assigned this Jan 20, 2023
@uniqueg uniqueg changed the title Improvised task distribution logic feat: distance-based task distribution logic Jan 22, 2023

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

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.

Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/task_distribution.py Resolved
Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
Comment thread pro_tes/middleware/task_distribution.py Resolved
Comment thread pro_tes/middleware/middleware.py Resolved

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

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

Comment thread pro_tes/middleware/__init__.py Resolved
Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
Comment thread pro_tes/middleware/middleware.py Resolved
Comment thread pro_tes/middleware/models.py Resolved
Comment thread pro_tes/middleware/models.py Resolved

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

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.

Comment thread pro_tes/middleware/middleware.py Resolved
@uniqueg

uniqueg commented Jan 26, 2023

Copy link
Copy Markdown
Member

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.

@uniqueg
uniqueg merged commit 6fd32cb into dev Jan 26, 2023
@uniqueg
uniqueg deleted the feature branch January 26, 2023 18:28
keshxvdayal pushed a commit that referenced this pull request Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants