Skip to content

Commit

Permalink
when using adhoc mode, dont signal external workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Apr 19, 2024
1 parent d6d045d commit 0dc4b0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/neptune/workflows/internal/terraform/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func newRunner(ctx workflow.Context, request Request) *Runner {
// be no situation where we are deploying while this is failing.
store := state.NewWorkflowStore(
func(s *state.Workflow) error {
// in adhoc mode we have no parent workflow to signal
if request.WorkflowMode == terraform.Adhoc {
return nil
}
return workflow.SignalExternalWorkflow(ctx, parent.ID, parent.RunID, state.WorkflowStateChangeSignal, s).Get(ctx, nil)
},
request.WorkflowMode,
Expand Down

0 comments on commit 0dc4b0a

Please sign in to comment.