Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.1] - 2026-05-22

### Fixed

- `workflows`: Fixed Windows builds by using platform-specific task runner shutdown signals.

## [0.7.0] - 2026-05-22

### Added
Expand Down Expand Up @@ -112,8 +118,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for Tilebox Observability, including logging and tracing helpers.
- Added examples for using the library.

[Unreleased]: https://github.com/tilebox/tilebox-go/compare/v0.7.0...HEAD
[0.6.0]: https://github.com/tilebox/tilebox-go/compare/v0.6.0...v0.7.0
[Unreleased]: https://github.com/tilebox/tilebox-go/compare/v0.7.1...HEAD
[0.7.1]: https://github.com/tilebox/tilebox-go/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/tilebox/tilebox-go/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/tilebox/tilebox-go/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/tilebox/tilebox-go/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/tilebox/tilebox-go/compare/v0.3.2...v0.4.0
Expand Down
3 changes: 1 addition & 2 deletions workflows/v1/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"reflect"
"strings"
"sync"
"syscall"
"time"

"github.com/avast/retry-go/v4"
Expand Down Expand Up @@ -196,7 +195,7 @@ func (t *TaskRunner) RunAll(ctx context.Context) {

func (t *TaskRunner) run(ctx context.Context, stopWhenIdling bool) {
// Catch signals to gracefully shutdown
ctxSignal, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT, syscall.SIGTSTP, syscall.SIGQUIT)
ctxSignal, stop := signal.NotifyContext(context.Background(), runnerShutdownSignals()...)
defer stop()

identifiers := make([]*workflowsv1.TaskIdentifier, 0, len(t.taskDefinitions))
Expand Down
9 changes: 9 additions & 0 deletions workflows/v1/signals_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build !unix && !windows

package workflows

import "os"

func runnerShutdownSignals() []os.Signal {
return []os.Signal{os.Interrupt}
}
12 changes: 12 additions & 0 deletions workflows/v1/signals_unix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//go:build unix

package workflows

import (
"os"
"syscall"
)

func runnerShutdownSignals() []os.Signal {
return []os.Signal{syscall.SIGTERM, syscall.SIGINT, syscall.SIGTSTP, syscall.SIGQUIT}
}
12 changes: 12 additions & 0 deletions workflows/v1/signals_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//go:build windows

package workflows

import (
"os"
"syscall"
)

func runnerShutdownSignals() []os.Signal {
return []os.Signal{syscall.SIGTERM, syscall.SIGINT}
}