mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-25 20:38:34 +00:00
feat: save run logs when each workflow node completed
This commit is contained in:
@@ -242,7 +242,7 @@ func (w *WorkflowDispatcher) work(ctx context.Context, data *WorkflowWorkerData)
|
||||
}
|
||||
|
||||
// 执行工作流
|
||||
invoker := newWorkflowInvoker(data)
|
||||
invoker := newWorkflowInvokerWithData(w.workflowRunRepo, data)
|
||||
if runErr := invoker.Invoke(ctx); runErr != nil {
|
||||
if errors.Is(runErr, context.Canceled) {
|
||||
run.Status = domain.WorkflowRunStatusTypeCanceled
|
||||
|
Reference in New Issue
Block a user