Skip to content

Commit

Permalink
stilgar - autopause workflows for programmatic workflow control
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Mar 19, 2024
1 parent 63cb1bc commit c274afe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/workflows/qrep_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ func QRepFlowWorkflow(
if err != nil {
return nil
}
// we don't want to leave this workflow with unhandled signals, but ignoring results
signalChan.Drain()
state.CurrentFlowStatus = protos.FlowStatus_STATUS_PAUSED
return workflow.NewContinueAsNewError(ctx, QRepFlowWorkflow, config, state)
}
logger.Info("initial copy completed for peer flow")
Expand Down

0 comments on commit c274afe

Please sign in to comment.