This commit is contained in:
1 file changed
-9
@@ -140,15 +140,6 @@ func NewEngine(source JobSource, runner Runner, cfg EngineConfig) (*Engine, erro
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Interval reports the resolved tick cadence.
|
||||
func (e *Engine) Interval() time.Duration { return e.cfg.Interval }
|
||||
|
||||
// MaxParallel reports the resolved parallel-pool cap.
|
||||
func (e *Engine) MaxParallel() int { return e.cfg.MaxParallel }
|
||||
|
||||
// JobTimeout reports the resolved per-run timeout.
|
||||
func (e *Engine) JobTimeout() time.Duration { return e.cfg.JobTimeout }
|
||||
|
||||
// Start launches the tick loop and the sequential worker. An engine can be
|
||||
// started only once.
|
||||
func (e *Engine) Start(ctx context.Context) error {
|
||||
|
||||
Reference in new issue
Block a user