deepseek-ai/deepseek-harness · error · ScheduleInputError

not_future

not_future

Error message

The scheduled time must be strictly in the future.

What it means

Error "The scheduled time must be strictly in the future." thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/schedule/schedule/src/domain.ts:199

  return epoch
}

/** Normalize an optional one-to-three digit fractional second to milliseconds. */
function milliseconds(value: string | undefined): number {
  return value === undefined ? 0 : Number(value.padEnd(3, '0'))
}

/** Require a safe, representable, strictly future UTC target. */
function futureInstant(epoch: number, now: number): string {
  if (!Number.isSafeInteger(now) || !Number.isSafeInteger(epoch)
    || epoch < MIN_FOUR_DIGIT_YEAR_MS || epoch > MAX_FOUR_DIGIT_YEAR_MS) {
    throw new ScheduleInputError(
      'time_out_of_range',
      'The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant.',
    )
  }
  if (epoch <= now) {
    throw new ScheduleInputError('not_future', 'The scheduled time must be strictly in the future.')
  }
  const instant = new Date(epoch).toISOString()
  /* v8 ignore next -- an in-range integral Date always formats as the canonical UTC profile. */
  if (!UTC_INSTANT.test(instant)) {
    throw new ScheduleInputError(
      'time_out_of_range',
      'The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant.',
    )
  }
  return instant
}

/** Parse a strict RFC 3339 instant whose numeric offset is part of the input. */
function parseOffsetInstant(value: string): number {
  const match = OFFSET_INSTANT.exec(value)
  const groups = match?.groups
  if (groups === undefined) {
    throw new ScheduleInputError(

View on GitHub (pinned to b150a551b8)

Solutions

  1. Schedule the time strictly in the future relative to the current clock.

When it happens

Trigger: Thrown at packages/schedule/schedule/src/domain.ts:199 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/c70d0d2332ac3df1. Report an issue: GitHub.