Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWorkerFailed = pyscripts.ErrRunnerFailed ErrBusy = pyscripts.ErrRunnerBusy ErrOutputLimit = pyscripts.ErrOutputLimit ErrClosed = pyscripts.ErrRunnerClosed )
These name the same failures as the pyscripts errors they wrap, so callers can match on either: code in this package compares against these, and the service and HTTP layers against the exported ones.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Python string
Workers int
// Timeout bounds a single run, measured from the moment a worker is obtained.
Timeout time.Duration
// AcquireTimeout bounds how long a caller waits for a free worker before the
// pool sheds the request. Without it a saturated pool queues indefinitely.
AcquireTimeout time.Duration
// StartTimeout bounds the handshake with a newly spawned worker, so one
// that never reports ready cannot hang startup.
StartTimeout time.Duration
MaxOutput int64
MaxLogLines int
BLASThreads int
Limits Limits
}
Click to show internal directories.
Click to hide internal directories.