-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue #32: Initial implementation of the non-blocking tagging task allocator. #47
base: main
Are you sure you want to change the base?
Conversation
f6a81ed
to
1bc05f0
Compare
@@ -4,4 +4,5 @@ graphlib-backport; python_version < '3.9' | |||
psutil | |||
pycapnp | |||
pyzmq | |||
sortedcontainers |
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.
This does not really add a new dependency, as pycapnp already has it as a dependency.
metadata @2 :Data; | ||
funcObjectId @3 :Data; | ||
functionArgs @4 :List(Argument); | ||
tags @2 :List(Text); |
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.
I'm using Capnp's text strings for tags. Alternatively, we could use UTF-8 encoded bytes.
Signed-off-by: rafa-be <[email protected]>
1bc05f0
to
07c3696
Compare
metadata @2 :Data; | ||
funcObjectId @3 :Data; | ||
functionArgs @4 :List(Argument); | ||
tags @2 :List(Text); |
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.
add tags
at last as @5
queuedTasks @3 :UInt32; | ||
latencyUS @4 :UInt32; | ||
taskLock @5 :Bool; | ||
processors @6 :List(Status.ProcessorStatus); |
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.
no need shifting fields, put them to the last
|
||
from tests.utility import logging_test_name | ||
|
||
MAX_TASKS_PER_WORKER = 10 |
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.
move this to default value file
Adds a first implementation of a task allocator that supports tags. Scheduler is still using the old
QueuedAllocator
.Once this replaces the old
QueuedAllocator
, it will also fix issue #45, as it removes the blocking worker queue.