Skip to content

Commit

Permalink
Merge pull request #2114 from keboola/mv-PSGO-917-fix-test-cleanup-test
Browse files Browse the repository at this point in the history
fix: Add WithoutCancel context in task cleanup
  • Loading branch information
Matovidlo authored Oct 23, 2024
2 parents 0862217 + f7953ff commit 1688b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/service/common/task/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func StartCleaner(d cleanerDeps, interval time.Duration) error {

// clean deletes old tasks to free space in etcd.
func (c *Cleaner) clean(ctx context.Context) (err error) {
ctx = context.WithoutCancel(ctx)
ctx, cancel := context.WithTimeout(ctx, CleanupTimeout)
defer cancel()

Expand Down

0 comments on commit 1688b66

Please sign in to comment.