(id string, success bool)
| 36 | } |
| 37 | |
| 38 | func (api *API) CompleteWorkflowRun(id string, success bool) error { |
| 39 | _, err := api.db.Exec("UPDATE workflow_runs SET completed_at = datetime('now'), success = $1 WHERE id = $2", |
| 40 | success, id) |
| 41 | return err |
| 42 | } |
| 43 | |
| 44 | func (api *API) GetWorkflow(hash, id string) (*config.Workflow, error) { |
| 45 | var workflowText []byte |