From 3d8d6c8906c733c0e3af851d781ef9b3b2b8b11f Mon Sep 17 00:00:00 2001 From: Shawna Monero <66325812+smonero@users.noreply.github.com> Date: Mon, 22 Apr 2024 08:10:50 -0700 Subject: [PATCH] when using adhoc mode, dont signal external workflow (#749) --- server/neptune/workflows/internal/terraform/workflow.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/neptune/workflows/internal/terraform/workflow.go b/server/neptune/workflows/internal/terraform/workflow.go index 0b674dfa7..eff184f32 100644 --- a/server/neptune/workflows/internal/terraform/workflow.go +++ b/server/neptune/workflows/internal/terraform/workflow.go @@ -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,