Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// QueueSize is the maximum number of jobs in the executor queue.
QueueSize int
// Workers is the number of workers that are concurrently executing jobs.
Workers int
// MaxJobRetries is the maximum number of retries if a job fails. This should
// not be zero. If you want to disable retries, just disable RetryJobAfterFailure.
MaxJobRetries int
// BaseRetryDelay defines how long after a job fails before it is re-queued.
BaseRetryDelay time.Duration
// RetryJobAfterFailure allows the job to be re-queued if it fails.
RetryJobAfterFailure bool
// PerWorkerQPS is the max QPS of a worker before it is rate-limited. With Workers,
// Workers*PerWorkerQPS is the overall QPS limit of the entire executor.
PerWorkerQPS int
// Timeout defines how long a single job is allowed to run and how long the
// entire executor should wait for all the jobs to stop when shutting down.
Timeout time.Duration
}
Config is the config for the Executor.
Click to show internal directories.
Click to hide internal directories.