Skip to content

Commit

Permalink
fix: don't release on started
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 committed Oct 2, 2024
1 parent a56629b commit 7647c28
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/services/dispatcher/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,12 +1064,6 @@ func (s *DispatcherImpl) handleStepRunStarted(ctx context.Context, request *cont
TenantId: tenantId,
})

err = s.repo.StepRun().ReleaseStepRunSemaphore(ctx, tenantId, request.StepRunId, false)

if err != nil {
s.l.Error().Err(err).Msgf("could not release semaphore for step run %s", request.StepRunId)
}

// send the event to the jobs queue
err = s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{
ID: "step-run-started",
Expand Down

0 comments on commit 7647c28

Please sign in to comment.