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)
| 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 |
no outgoing calls