execute workflows asynchronously

This commit is contained in:
yoan
2025-01-09 20:00:15 +08:00
parent 6badc0f419
commit ebffac7ba4
6 changed files with 162 additions and 21 deletions

View File

@@ -40,6 +40,10 @@ type Workflow struct {
LastRunTime time.Time `json:"lastRunTime" db:"lastRunTime"`
}
func (w *Workflow) Table() string {
return "workflow"
}
type WorkflowNode struct {
Id string `json:"id"`
Type WorkflowNodeType `json:"type"`