-
Notifications
You must be signed in to change notification settings - Fork 0
Task Manager
Tianshu Huang edited this page Dec 1, 2018
·
2 revisions
Task Manager module with server and client implementations
Slack | Github | |
---|---|---|
Tianshu | @tianshu.huang | @thetianshuhuang |
- imagedb
- numpy
- requests
Creating and running a task server:
from task_manager import TaskServer
manager = TaskServer()
manager.run()
# do things
...
manager.stop()
Creating a remote task server::
from task_manager import RemoteTaskManager, RemoteServer
manager = RemoteTaskManager(
RemoteServer("192.168.0.101:8000", post="", get=""))
# Send new task
manager.put(Task(label="TypeA", data=[1,2,3]))
# get a new task
new = manager.get()