Skip to content

Commit 1d2a350

Browse files
authored
Merge pull request #21 from timoreimann/short-circuit-slacksync-runs-on-context-expiry
Short-circuit Slack sync runs on context expiry
2 parents 9f37a85 + 127c3e0 commit 1d2a350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (s *syncer) Run(ctx context.Context, slackSyncs []runSlackSync, failFast bo
115115
err := s.runSlackSync(ctx, slackSync)
116116
if err != nil {
117117
msg := fmt.Sprintf("failed to run Slack sync %s: %s", slackSync.name, err)
118-
if failFast {
118+
if failFast || ctx.Err() != nil {
119119
return errors.New(msg)
120120
}
121121

0 commit comments

Comments
 (0)