mirror of
https://github.com/wassname/ray.git
synced 2026-08-07 11:27:43 +08:00
Run flake8 in Travis and make code PEP8 compliant. (#387)
This commit is contained in:
committed by
Philipp Moritz
parent
083e7a28ad
commit
ba02fc0eb0
@@ -3,11 +3,13 @@ import time
|
||||
|
||||
import ray
|
||||
|
||||
|
||||
@ray.remote
|
||||
def f():
|
||||
time.sleep(0.1)
|
||||
return ray.services.get_node_ip_address()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ray.init(redis_address=os.environ["RAY_REDIS_ADDRESS"])
|
||||
# Check that tasks are scheduled on all nodes.
|
||||
|
||||
Reference in New Issue
Block a user