func (*TaskRunner) RunForever(ctx context.Context) errorRun the runner continuously, polling for tasks when idle.
RunForever stops when the context is canceled or when the process receives a supported shutdown signal.
Parameters
Section titled “Parameters”ctx context.Context required The context controlling the runner lifetime.
Returns
Section titled “Returns”An error if the polling loop fails.