You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ray version and other system information (Python version, TensorFlow version, OS): 1.4 and earlier
The raylet overestimates the number of missing args for tasks that have duplicate args. This can lead to the task never being scheduled.
Reproduction (REQUIRED)
Please provide a short code snippet (less than 50 lines if possible) that can be copy-pasted to reproduce the issue. The snippet should have no external library dependencies (i.e., use fake or mock data / environments):
If the code snippet cannot be run by itself, the issue will be closed with "needs-repro-script".
deftest_many_args(ray_start_cluster):
# This test ensures that a task will run where its task dependencies are# located, even when those objects are borrowed.cluster=ray_start_clusterobject_size=int(1e6)
# Disable worker caching so worker leases are not reused, and disable# inlining of return objects so return objects are always put into Plasma.for_inrange(4):
cluster.add_node(
num_cpus=1, object_store_memory=(4*object_size*25))
ray.init(address=cluster.address)
@ray.remotedeff(i, *args):
print(i)
return@ray.remotedefput():
returnnp.zeros(object_size, dtype=np.uint8)
xs= [put.remote() for_inrange(100)]
ray.wait(xs, num_returns=len(xs), fetch_local=False)
tasks= []
foriinrange(100):
args= [np.random.choice(xs) for_inrange(25)]
tasks.append(f.remote(i, *args))
ray.get(tasks)
I have verified my script runs in a clean environment and reproduces the issue.
I have verified the issue also occurs with the latest wheels.
The text was updated successfully, but these errors were encountered:
stephanie-wang
added
bug
Something that is supposed to be working; but isn't
triage
Needs triage (eg: priority, bug/not-bug, and owning component)
1.4.1
and removed
triage
Needs triage (eg: priority, bug/not-bug, and owning component)
labels
Jun 19, 2021
What is the problem?
Ray version and other system information (Python version, TensorFlow version, OS): 1.4 and earlier
The raylet overestimates the number of missing args for tasks that have duplicate args. This can lead to the task never being scheduled.
Reproduction (REQUIRED)
Please provide a short code snippet (less than 50 lines if possible) that can be copy-pasted to reproduce the issue. The snippet should have no external library dependencies (i.e., use fake or mock data / environments):
If the code snippet cannot be run by itself, the issue will be closed with "needs-repro-script".
The text was updated successfully, but these errors were encountered: