From d64b732c25273ca3b588cc94ebb716a1a0fabca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Tue, 18 Oct 2022 10:56:04 +0200 Subject: [PATCH] Fix sub-workflows not executable on server restart --- automation/service/workflow.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/automation/service/workflow.go b/automation/service/workflow.go index 3bf94f751..5c60d9f3c 100644 --- a/automation/service/workflow.go +++ b/automation/service/workflow.go @@ -493,8 +493,9 @@ func (svc workflow) handleUndelete(ctx context.Context, res *types.Workflow) (wo func (svc *workflow) Load(ctx context.Context) error { var ( set, _, err = store.SearchAutomationWorkflows(ctx, svc.store, types.WorkflowFilter{ - Deleted: filter.StateInclusive, - Disabled: filter.StateExcluded, + Deleted: filter.StateInclusive, + Disabled: filter.StateExcluded, + SubWorkflow: filter.StateInclusive, }) g *wfexec.Graph runAs intAuth.Identifiable