3
0

Fix sub-workflows not executable on server restart

This commit is contained in:
Tomaž Jerman
2022-10-18 10:56:04 +02:00
parent fd6465d0f9
commit d64b732c25

View File

@@ -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