Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Created January 27, 2020 23:37
Show Gist options
  • Save deanwampler/815d013062500aed499366674cd0570d to your computer and use it in GitHub Desktop.
Save deanwampler/815d013062500aed499366674cd0570d to your computer and use it in GitHub Desktop.
import ray, time
ray.init()
# A function that "stays busy" for some number of seconds
@ray.remote
def busy(i):
time.sleep(i)
return i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment