-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[core][experimental] Correct num_input_consumers
for CachedChannel
#47489
Conversation
Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
Signed-off-by: kaihsun <kaihsun@anyscale.com>
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 for the fix!
Need to change title?
Signed-off-by: kaihsun <kaihsun@anyscale.com>
Signed-off-by: kaihsun <kaihsun@anyscale.com>
num_input_consumers
for CachedChannel
How about "Correct num_input_consumers for CachedChannel"? |
ready to be merged @kevin85421 ? |
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.
LGTM when tests pass!
It will be ready to be merged after tests pass. |
premerge failures |
Retry the unrelated RLlib failures. |
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
…ay-project#47489) Without this PR, the num_input_consumers would be 1 because both inp[0] and inp[1] are only referred to in one task on the actor, so CachedChannel will not be created. The read will eventually time out because the mutable object is being read by the same actor twice. Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
Why are these changes needed?
Problem statement
Without this PR, the
num_input_consumers
would be 1 because bothinp[0]
andinp[1]
are only referred to in one task on the actor, soCachedChannel
will not be created. The read will eventually time out because the mutable object is being read by the same actor twice.Solution
If a task is bound to either an
InputNode
or anInputAttributeNode
, incrementnum_input_consumers
by 1. Therefore,num_input_consumers
will be 2, and aCachedChannel
will be created.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.