Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Created March 23, 2020 23:28
Show Gist options
  • Save deanwampler/abd18b7067179e77479958eeeb930e20 to your computer and use it in GitHub Desktop.
Save deanwampler/abd18b7067179e77479958eeeb930e20 to your computer and use it in GitHub Desktop.
import ray, time
ray.init()
# A function that "stays busy" for some number of seconds
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