Server¶
dotflow.abc.server.Server
¶
Bases: ABC
Server ABC provider for sending workflow and task data to a remote API.
Implementations should handle HTTP communication with a server like dotflow-api, sending execution data (status, duration, errors, context) in real time.
Source code in dotflow/abc/server.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
create_task(task)
abstractmethod
¶
Register a new task on the remote server.
Source code in dotflow/abc/server.py
24 25 26 | |
create_workflow(workflow)
abstractmethod
¶
Register a new workflow on the remote server.
Source code in dotflow/abc/server.py
16 17 18 | |
update_task(task)
abstractmethod
¶
Update task data on the remote server.
Source code in dotflow/abc/server.py
28 29 30 | |
update_workflow(workflow, status='')
abstractmethod
¶
Update workflow status on the remote server.
Source code in dotflow/abc/server.py
20 21 22 | |