code: func pastActiveDeadline(job *batch.Job) bool {
  	if job.Spec.ActiveDeadlineSeconds == nil || job.Status.StartTime == nil {
  		return false
  	}
  	now := metav1.Now()
  	start := job.Status.StartTime.Time
  	duration := now.Time.Sub(start)
  	allowedDuration := time.Duration(*job.Spec.ActiveDeadlineSeconds) * time.Second
  	return duration >= allowedDuration
  }
docs: // pastActiveDeadline checks if job has ActiveDeadlineSeconds field set and if it is exceeded.