Documentation
¶
Overview ¶
Package execution provides unified provider execution patterns for the MindTrial application. It handles common execution concerns such as retry logic, rate limiting, and error handling that are shared between different components like task runners and validators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackoffWithCallback ¶
func BackoffWithCallback(onBackoff func(nextRetryAttempt uint64, nextDelay time.Duration), next retry.Backoff) retry.Backoff
BackoffWithCallback wraps a retry.Backoff with a callback function that is called before each retry attempt. The callback receives the next retry attempt number and the delay duration.
Types ¶
type Executor ¶
type Executor struct {
Provider providers.Provider
RunConfig config.RunConfig
// contains filtered or unexported fields
}
Executor provides a unified way to execute provider tasks with retry logic and rate limiting.
func NewExecutor ¶
NewExecutor creates a new provider executor with the given provider and run configuration.
Click to show internal directories.
Click to hide internal directories.