Skip to content

Commit

Permalink
bump processing interval back up to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi committed Oct 6, 2024
1 parent 61cbe24 commit e3778b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/abstractions/endpoint/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
requestProcessingInterval time.Duration = time.Millisecond * 50
requestProcessingInterval time.Duration = time.Millisecond * 100
)

type request struct {
Expand Down Expand Up @@ -478,6 +478,8 @@ func (rb *RequestBuffer) heartBeat(req request, containerId string) {
rb.rdb.Set(rb.ctx, Keys.endpointRequestHeartbeat(rb.workspace.Name, rb.stubId, req.task.msg.TaskId), containerId, endpointRequestHeartbeatInterval)
for {
select {
case <-req.done:
return
case <-ctx.Done():
if err := req.ctx.Request().Context().Err(); err == context.Canceled {
rb.cancelInFlightTask(req.task)
Expand Down

0 comments on commit e3778b7

Please sign in to comment.