Requeue stale AI jobs
This commit is contained in:
@@ -21,6 +21,7 @@ type Config struct {
|
||||
WorkerID string
|
||||
WorkerPollInterval time.Duration
|
||||
WorkerClaimLimit int
|
||||
WorkerLeaseTimeout time.Duration
|
||||
}
|
||||
|
||||
func Load() Config {
|
||||
@@ -39,6 +40,7 @@ func Load() Config {
|
||||
WorkerID: envString("WORKER_ID", hostname()),
|
||||
WorkerPollInterval: envDuration("WORKER_POLL_INTERVAL", 2*time.Second),
|
||||
WorkerClaimLimit: envInt("WORKER_CLAIM_LIMIT", 4),
|
||||
WorkerLeaseTimeout: envDuration("WORKER_LEASE_TIMEOUT", 15*time.Minute),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user