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
{{ message }}
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
# This function is a proxy for a more interesting and computationally# intensive function.@ray.remotedefslow_function(i):
time.sleep(1)
returni# Sleep a little to improve the accuracy of the timing measurements below.# We do this because workers may still be starting up in the background.time.sleep(2.0)
start_time=time.time()
results= [slow_function.remote(i) foriinrange(4)]
end_time=time.time()
duration=end_time-start_timeprint('The results are {}. This took {} seconds. Run the next cell to see ''if the exercise was done correctly.'.format(results, duration))
ray.version = '0.8.7'
yields error: