mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
13 lines
415 B
Python
13 lines
415 B
Python
# These three constants are used to define the mode that a worker is running in.
|
|
# Right now, this is only used for determining how to print information about
|
|
# task failures.
|
|
SCRIPT_MODE = 0
|
|
WORKER_MODE = 1
|
|
SHELL_MODE = 2
|
|
PYTHON_MODE = 2
|
|
|
|
import libraylib as lib
|
|
import serialization
|
|
from worker import scheduler_info, task_info, register_module, connect, disconnect, get, put, remote
|
|
from libraylib import ObjRef
|