s8sg / goflow

A Golang based high performance, scalable and distributed workflow framework
MIT License
1.06k stars 129 forks source link

[Feature] Add support in server to stop, pause, resume and list flow #61

Closed s8sg closed 11 months ago

s8sg commented 11 months ago

Currently HTTP server only support execution of the flow with

POST /`flow-name`
GET /`flow-name`

The proposal is to add the support to stop, pause, resume and list flows The APIS would be

Execute

Execute executes the flow, we will change the domain with /flow prefix

POST /flow/`flow-name` 
GET /flow/`flow-name`

Stop

Stop stops the flow

POST /flow/`flow-name`/stop 

Pause

Pause pause execution of the flow

POST /flow/`flow-name`/pause

Resume

Resume resumes the execution of the flow

POST /flow/`flow-name`/resume

List

List lists all the registered flows

POST /flow/list
s8sg commented 11 months ago

This is completed