Skip to content

Commit

Permalink
Merge pull request #21 from timoreimann/short-circuit-slacksync-runs-…
Browse files Browse the repository at this point in the history
…on-context-expiry

Short-circuit Slack sync runs on context expiry
  • Loading branch information
timoreimann authored Sep 26, 2024
2 parents 9f37a85 + 127c3e0 commit 1d2a350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *syncer) Run(ctx context.Context, slackSyncs []runSlackSync, failFast bo
err := s.runSlackSync(ctx, slackSync)
if err != nil {
msg := fmt.Sprintf("failed to run Slack sync %s: %s", slackSync.name, err)
if failFast {
if failFast || ctx.Err() != nil {
return errors.New(msg)
}

Expand Down

0 comments on commit 1d2a350

Please sign in to comment.