diff --git a/go/tasks/plugins/hive/execution_state.go b/go/tasks/plugins/hive/execution_state.go index ab048d245d..4246d12933 100644 --- a/go/tasks/plugins/hive/execution_state.go +++ b/go/tasks/plugins/hive/execution_state.go @@ -176,7 +176,7 @@ func GetAllocationToken(ctx context.Context, tCtx core.TaskExecutionContext, cur } else { newState.AllocationTokenRequestStartTime = currentState.AllocationTokenRequestStartTime } - waitTime := time.Now().Sub(newState.AllocationTokenRequestStartTime) + waitTime := time.Since(newState.AllocationTokenRequestStartTime) metric.ResourceWaitTime.Observe(waitTime.Seconds()) if allocationStatus == core.AllocationStatusGranted {