/** Polling intervals for react-query refetchInterval (ms) */
export const POLLING = {
  /** Task list: 15s */
  TASK_LIST: 15_000,
  /** Task detail, subtask activities, browser sessions: 5s */
  FAST: 5_000,
  /** Captcha check, subtask list: 10s */
  MEDIUM: 10_000,
  /** NoVNC session check, task list: 15s */
  SLOW: 15_000,
  /** Scheduled tasks: 30s */
  VERY_SLOW: 30_000,
} as const;

/** staleTime values for react-query (ms) */
export const STALE_TIME = {
  /** Default global staleTime: 10s */
  DEFAULT: 10_000,
  /** Semi-static data (pieces, config): 30s */
  SEMI_STATIC: 30_000,
  /** Nearly static data (tools): 60s */
  STATIC: 60_000,
} as const;
