diff --git a/scheduler/cmd/agent/main.go b/scheduler/cmd/agent/main.go index 4dea4dc41b..b6cc63e6b6 100644 --- a/scheduler/cmd/agent/main.go +++ b/scheduler/cmd/agent/main.go @@ -259,11 +259,11 @@ func main() { cli.SchedulerHost, cli.SchedulerPort, cli.SchedulerTlsPort, - time.Duration(cli.MaxElapsedTimeReadySubServiceAfterStartSeconds), - time.Duration(cli.MaxElapsedTimeReadySubServiceBeforeStartMinutes), - time.Duration(cli.MaxElapsedTimeReadySubServiceAfterStartSeconds), - time.Duration(cli.MaxLoadElapsedTimeMinute), - time.Duration(cli.MaxUnloadElapsedTimeMinute), + time.Duration(cli.MaxElapsedTimeReadySubServiceAfterStartSeconds)*time.Second, + time.Duration(cli.MaxElapsedTimeReadySubServiceBeforeStartMinutes)*time.Minute, + time.Duration(cli.MaxElapsedTimeReadySubServiceAfterStartSeconds)*time.Second, + time.Duration(cli.MaxLoadElapsedTimeMinute)*time.Minute, + time.Duration(cli.MaxUnloadElapsedTimeMinute)*time.Minute, uint8(cli.MaxLoadRetryCount), uint8(cli.MaxUnloadRetryCount), ),