Implemented Worker-Specific Task Assignment Capabilities. #1174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug / Requirement Description
Solution description
workers_name
to storeuid
of workers in Task.is_picked_up
to keep track of task assignment in Task.queue_map
in TaskQueue to keep separate task queue for all workers in case of need, or else it will be stored indefault
queue.workers_name
given in Task object, means task needs to run by givenuid
workers only, else it can be run by anyone.uid
ofworkers_name
& manage it throughqueue_map
.Task.is_picked_up
variable.Task.is_picked_up
is True then don't assign anything for that pull request, else assign it & markTask.is_picked_up
True._handle_taskresults
,_decommission_worker
,_discard_task
,discard_pending_tasks
, markTask.is_picked_up
False.Checklist: