Skip to content

Commit

Permalink
fix(bug): time unit fix (#5892)
Browse files Browse the repository at this point in the history
* fix(bug): time units fix

* fix(bug): MaxLoadElapsedTimeMinute is in minutes
  • Loading branch information
abhimanyu003 authored Sep 12, 2024
1 parent 850eeae commit ffe28f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scheduler/cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
Expand Down

0 comments on commit ffe28f2

Please sign in to comment.