Skip to content

Task Manager

Tianshu Huang edited this page Dec 1, 2018 · 2 revisions

Task Manager Module

Task Manager module with server and client implementations

Maintainers

Slack Github
Tianshu @tianshu.huang @thetianshuhuang

Dependencies

Internal

  • imagedb

External

  • numpy
  • requests

Examples

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()
Clone this wiki locally