Created
January 27, 2020 23:37
-
-
Save deanwampler/815d013062500aed499366674cd0570d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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