Skip to content

Commit

Permalink
Revert "Make worker concurrent sessions configurable"
Browse files Browse the repository at this point in the history
This reverts commit 5bf6c7f.
  • Loading branch information
DanielCosme committed Jun 4, 2024
1 parent 5bf6c7f commit cedfa4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion enduro.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ disabled = true
processNameMetadata = false

[worker]
maxCuncurrentSessions = 1000
heartbeatThrottleInterval = "60s"

[workflow]
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func main() {
done := make(chan struct{})
w := temporalsdk_worker.New(temporalClient, config.Temporal.TaskQueue, temporalsdk_worker.Options{
EnableSessionWorker: true,
MaxConcurrentSessionExecutionSize: config.Worker.MaxConcurrentSessions,
MaxConcurrentSessionExecutionSize: 5000,
MaxHeartbeatThrottleInterval: config.Worker.HeartbeatThrottleInterval,
DefaultHeartbeatThrottleInterval: config.Worker.HeartbeatThrottleInterval,
})
Expand Down Expand Up @@ -403,7 +403,6 @@ type configuration struct {

type WorkerConfig struct {
HeartbeatThrottleInterval time.Duration
MaxConcurrentSessions int
}

func (c configuration) Validate() error {
Expand Down

0 comments on commit cedfa4c

Please sign in to comment.