mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-10-16 01:03:17 +01:00
docs(supervisor): point maybeRestartAfterTask at the timeout constant
This commit is contained in:
@@ -580,9 +580,9 @@ func (s *processSupervisor) ensureHealthy(ctx context.Context) error {
|
|||||||
|
|
||||||
// maybeRestartAfterTask checks if the maximum request limit has been reached
|
// maybeRestartAfterTask checks if the maximum request limit has been reached
|
||||||
// and, if so, triggers an asynchronous restart bounded by
|
// and, if so, triggers an asynchronous restart bounded by
|
||||||
// [eagerRestartTimeout]. If a restart is initiated, it takes ownership of the
|
// [defaultEagerRestartTimeout]. If a restart is initiated, it takes ownership
|
||||||
// caller's semaphore slot (the caller must not release it). Returns true if
|
// of the caller's semaphore slot (the caller must not release it). Returns true
|
||||||
// ownership was taken.
|
// if ownership was taken.
|
||||||
func (s *processSupervisor) maybeRestartAfterTask(logger *slog.Logger) bool {
|
func (s *processSupervisor) maybeRestartAfterTask(logger *slog.Logger) bool {
|
||||||
if s.maxReqLimit <= 0 || s.reqCounter.Load() < s.maxReqLimit {
|
if s.maxReqLimit <= 0 || s.reqCounter.Load() < s.maxReqLimit {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user