MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / Run

Method Run

pkg/gotenberg/supervisor.go:73–73  ·  view source on GitHub ↗

Run executes a provided task while managing the state of the [Process]. Run manages the request queue and may restart the process if it is not healthy or if the number of handled requests exceeds the maximum limit. It returns an error if the task cannot be run or if the process state cannot be man

(ctx context.Context, logger *slog.Logger, task func() error)

Source from the content-addressed store, hash-verified

71 // It returns an error if the task cannot be run or if the process state
72 // cannot be managed properly.
73 Run(ctx context.Context, logger *slog.Logger, task func() error) error
74
75 // ReqQueueSize returns the current size of the request queue.
76 ReqQueueSize() int64

Implementers 2

ProcessSupervisorMockpkg/gotenberg/mocks.go
processSupervisorpkg/gotenberg/supervisor.go

Calls

no outgoing calls