Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Add custom hourly intervals for scheduled tasks (#15799)
Lee Jackson74852762e872
diff --git a/studio/backend/core/scheduled_tasks/schedule.py b/studio/backend/core/scheduled_tasks/schedule.pyindex dab2051deee..1425e956e4f 100644--- a/studio/backend/core/scheduled_tasks/schedule.py+++ b/studio/backend/core/scheduled_tasks/schedule.py@@ -1,7 +1,7 @@# SPDX-License-Identifier: AGPL-3.0-only# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-"""When a task runs next: wall clock in its IANA zone; a skipped time runs past the gap, a repeated one once."""+"""When a task runs next: elapsed hourly intervals or wall clock in its IANA zone."""from __future__ import annotations@@ -47,6 +47,13 @@ class OnceSchedule(BaseModel):at: LocalMinute+class HourlySchedule(BaseModel):+ model_config = ConfigDict(extra = "forbid")++ kind: Literal["hourly"]+ hours: int = Field(strict = True, ge = 1, le = 24)++class DailySchedule(BaseModel):model_config = ConfigDict(extra = "forbid")@@ -80,7 +87,7 @@ class MonthlySchedule(BaseModel):Schedule = Annotated[- Union[OnceSchedule, DailySchedule, WeeklySchedule, MonthlySchedule],+ Union[OnceSchedule, HourlySchedule, DailySchedule, WeeklySchedule, MonthlySchedule],Field(discriminator = "kind"),]_SCHEDULE = TypeAdapter(Schedule)@@ -134,9 +141,25 @@ def _next_after(schedule: Schedule, zone: ZoneInfo, after: datetime) -> Optionalreturn None-def next_run_after(schedule: Schedule, timezone_name: str, after_ms: int) -> Optional[int]:- """The first run strictly after ``after_ms`` (epoch ms), or None once a schedule has none left."""+def next_run_after(+ schedule: Schedule,+ timezone_name: str,+ after_ms: int,+ *,+ anchor_ms: Optional[int] = None,+) -> Optional[int]:+ """The first run strictly after ``after_ms`` (epoch ms), or None once a schedule has none left.++ Hourly schedules start one interval from now unless a persisted occurrence anchors their cadence.+ """zone = resolve_timezone(timezone_name)+ if isinstance(schedule, HourlySchedule):+ interval_ms = schedule.hours * 60 * 60 * 1000+ if anchor_ms is None:+ return after_ms + interval_ms+ # Keep elapsed intervals through DST and delayed polling; missed occurrences are skipped.+ intervals = max(0, (after_ms - anchor_ms) // interval_ms + 1)+ return anchor_ms + intervals * interval_msafter = datetime.fromtimestamp(after_ms / 1000, tz = timezone.utc)candidate = _next_after(schedule, zone, after)return None if candidate is None else int(candidate.timestamp() * 1000)diff --git a/studio/backend/core/scheduled_tasks/scheduler.py b/studio/backend/core/scheduled_tasks/scheduler.pyindex 40b7d3a0695..5693e90d6db 100644--- a/studio/backend/core/scheduled_tasks/scheduler.py+++ b/studio/backend/core/scheduled_tasks/scheduler.py@@ -109,7 +109,12 @@ def retire_account_scheduled_tasks(account: AccountContext) -> None:def next_run_for(task: dict, after_ms: int) -> Optional[int]:- return next_run_after(parse_schedule(task["schedule"]), task["timezone"], after_ms)+ return next_run_after(+ parse_schedule(task["schedule"]),+ task["timezone"],+ after_ms,+ anchor_ms = task.get("nextRunAt"),+ )def system_prompt(task: dict, now_ms: int) -> str:diff --git a/studio/backend/routes/scheduled_tasks.py b/studio/backend/routes/scheduled_tasks.pyindex e6dba5fc6c6..b384bcc6a20 100644--- a/studio/backend/routes/scheduled_tasks.py+++ b/studio/backend/routes/scheduled_tasks.py@@ -12,8 +12,7 @@ from fastapi import APIRouter, Depends, HTTPException, Query, Request, Responsefrom pydantic import AfterValidator, BaseModel, ConfigDict, Fieldfrom auth.authentication import authenticated_via_api_key, get_current_subject-from core.scheduled_tasks.schedule import InvalidSchedule, Schedule-from core.scheduled_tasks.scheduler import next_run_for+from core.scheduled_tasks.schedule import InvalidSchedule, Schedule, next_run_after, parse_schedulefrom storage import scheduled_tasks_db as dbrouter = APIRouter()@@ -156,7 +155,8 @@ def _existing_project(project_id: Optional[str]) -> Optional[str]:def _next_run(task: dict, now: int) -> Optional[int]:try:- following = next_run_for(task, now)+ # Creation, a timing change, or resume starts a fresh hourly interval from now.+ following = next_run_after(parse_schedule(task["schedule"]), task["timezone"], now)except InvalidSchedule as exc:raise HTTPException(status_code = 400, detail = str(exc)) from Noneif following is None and task["enabled"]:diff --git a/studio/backend/tests/test_scheduled_tasks.py b/studio/backend/tests/test_scheduled_tasks.pyindex 5706cbf492c..0684f4e59a5 100644--- a/studio/backend/tests/test_scheduled_tasks.py+++ b/studio/backend/tests/test_scheduled_tasks.py@@ -32,7 +32,8 @@ from storage import scheduled_tasks_db as dbfrom storage import studio_dbfrom utils.account_context import OWNER-DAY = 24 * 60 * 60 * 1000+HOUR = 60 * 60 * 1000+DAY = 24 * HOURdef ms(iso: str) -> int:@@ -123,6 +124,44 @@ def test_next_run_after(schedule, zone, after, expected):assert following == ms(f"{expected}:00+00:00")[email protected]("hours", [1, 2, 5, 24])+def test_hourly_schedules_start_one_full_interval_from_now(hours):+ now = ms("2026-10-14T09:23:45.123+00:00")+ schedule = parse_schedule({"kind": "hourly", "hours": hours})+ assert next_run_after(schedule, "UTC", now) == now + hours * HOUR+++ "zone, anchor, hours, elapsed_ms, expected",+ [+ # One millisecond of polling delay must not shift the next occurrence.+ ("UTC", "2026-10-14T09:00:00+00:00", 1, 1, "2026-10-14T10:00:00+00:00"),+ # Five-hour intervals continue across midnight instead of resetting each day.+ ("UTC", "2026-10-14T23:00:00+00:00", 5, 0, "2026-10-15T04:00:00+00:00"),+ # Missed occurrences are skipped while keeping the original cadence.+ ("UTC", "2026-10-14T09:00:00+00:00", 2, 7 * HOUR, "2026-10-14T17:00:00+00:00"),+ # A future persisted occurrence remains the next one.+ ("UTC", "2026-10-14T09:00:00+00:00", 2, -1, "2026-10-14T09:00:00+00:00"),+ # New York jumps from 01:59 to 03:00; elapsed hours remain exactly one hour.+ ("America/New_York", "2026-03-08T06:30:00+00:00", 1, 0, "2026-03-08T07:30:00+00:00"),+ # Both occurrences of 01:30 are one elapsed hour apart when the clocks fall back.+ ("America/New_York", "2026-11-01T05:30:00+00:00", 1, 0, "2026-11-01T06:30:00+00:00"),+ ],+)+def test_hourly_schedules_keep_their_elapsed_cadence(zone, anchor, hours, elapsed_ms, expected):+ anchor_ms = ms(anchor)+ schedule = parse_schedule({"kind": "hourly", "hours": hours})+ assert next_run_after(schedule, zone, anchor_ms + elapsed_ms, anchor_ms = anchor_ms) == ms(+ expected+ )++[email protected]("hours", [0, -1, 25, 1.5, 2.0, True, False, "2", None])+def test_hourly_intervals_require_whole_hours_in_range(hours):+ with pytest.raises(ValidationError):+ parse_schedule({"kind": "hourly", "hours": hours})++def test_a_one_time_task_has_no_run_left_once_its_time_passes():schedule = parse_schedule({"kind": "once", "at": "2026-10-15T09:00"})assert next_run_after(schedule, "UTC", ms("2026-10-15T09:00:00+00:00")) is None@@ -388,6 +427,74 @@ def test_invalid_tasks_are_refused(client, overrides, status):assert client.get("/api/scheduled-tasks").json()["tasks"] == [][email protected]("hours", [0, -1, 25, 1.5, 2.0, True, "2", None])+def test_invalid_hourly_intervals_are_refused_on_create_and_update(client, hours):+ invalid = {"kind": "hourly", "hours": hours}+ assert create(client, schedule = invalid).status_code == 422+ task = create(client).json()+ response = client.patch(f"/api/scheduled-tasks/{task['id']}", json = {"schedule": invalid})+ assert response.status_code == 422+ assert client.get(f"/api/scheduled-tasks/{task['id']}").json() == task+++def test_hourly_tasks_persist_and_restart_the_interval_on_timing_changes(client, monkeypatch):+ now = ms("2026-10-14T09:23:45.123+00:00")+ monkeypatch.setattr(db, "now_ms", lambda: now)+ schedule = {"kind": "hourly", "hours": 2}+ response = create(client, schedule = schedule)+ assert response.status_code == 201+ task = response.json()+ url = f"/api/scheduled-tasks/{task['id']}"+ due = now + 2 * HOUR+ assert task["schedule"] == schedule+ assert task["nextRunAt"] == due+ assert client.get(url).json() == task+ assert client.get("/api/scheduled-tasks").json()["tasks"] == [task]++ now = due + HOUR+ # Saving unchanged timing and renaming must preserve the overdue occurrence.+ unchanged = client.patch(+ url,+ json = {"title": "Hourly brief", "schedule": schedule, "enabled": True, "timezone": "UTC"},+ ).json()+ assert unchanged["nextRunAt"] == due++ edited = client.patch(url, json = {"schedule": {"kind": "hourly", "hours": 5}}).json()+ assert edited["nextRunAt"] == now + 5 * HOUR+ paused = client.patch(url, json = {"enabled": False}).json()+ assert paused["status"] == "paused" and paused["nextRunAt"] is None+ now += DAY+ resumed = client.patch(url, json = {"enabled": True}).json()+ assert resumed["status"] == "active"+ assert resumed["nextRunAt"] == now + 5 * HOUR+ now += HOUR+ rezoned = client.patch(url, json = {"timezone": "Europe/London"}).json()+ assert rezoned["nextRunAt"] == now + 5 * HOUR+++def test_late_hourly_claims_skip_missed_runs_without_drift_and_manual_runs_keep_the_cadence():+ due = ms("2026-10-14T09:23:45.123+00:00")+ make_task(schedule = {"kind": "hourly", "hours": 2}, nextRunAt = due)+ now = due + 7 * HOUR + 1+ task, run = db.claim_next(now, "worker", next_run_for)+ assert run["scheduledFor"] == due+ assert task["nextRunAt"] == due + 8 * HOUR+ assert db.claim_next(now, "worker", next_run_for) is None+ db.finish_run(run["id"], "worker", status = "succeeded")+ assert db.claim_next(now, "worker", next_run_for) is None++ db.request_run(task["id"])+ manual_task, manual = db.claim_next(now, "worker", next_run_for)+ assert manual["source"] == "manual"+ assert manual_task["nextRunAt"] == due + 8 * HOUR+ db.finish_run(manual["id"], "worker", status = "succeeded")++ # The next pass reads only persisted state, so a process restart does not reset the cadence.+ following, following_run = db.claim_next(due + 8 * HOUR + 57, "new-worker", next_run_for)+ assert following_run["scheduledFor"] == due + 8 * HOUR+ assert following["nextRunAt"] == due + 10 * HOUR++def test_the_task_limit(client, monkeypatch):monkeypatch.setattr(db, "MAX_TASKS", 1)assert create(client).status_code == 201diff --git a/studio/frontend/src/features/scheduled-tasks/schedule.ts b/studio/frontend/src/features/scheduled-tasks/schedule.tsindex eb6f12a205c..42393707249 100644--- a/studio/frontend/src/features/scheduled-tasks/schedule.ts+++ b/studio/frontend/src/features/scheduled-tasks/schedule.ts@@ -2,17 +2,19 @@// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-/** Mirrors core/scheduled_tasks/schedule.py: wall clock in the task's zone, ISO weekdays, a missing monthly day runs on the last. */+/** Mirrors core/scheduled_tasks/schedule.py: hourly intervals use elapsed time; calendar schedules use the task's zone. */export type TaskSchedule =| { kind: "once"; at: string }+ | { kind: "hourly"; hours: number }| { kind: "daily"; time: string }| { kind: "weekly"; time: string; days: number[] }| { kind: "monthly"; time: string; day: number };-export type RepeatKind = "once" | "daily" | "weekdays" | "weekly" | "monthly";+export type RepeatKind = "once" | "hourly" | "daily" | "weekdays" | "weekly" | "monthly";export const REPEAT_KINDS: readonly RepeatKind[] = ["once",+ "hourly","daily","weekdays","weekly",@@ -24,6 +26,7 @@ const WORKDAYS = [1, 2, 3, 4, 5];export interface ScheduleForm {repeat: RepeatKind;+ hours: number;time: string;date: string;days: number[];@@ -55,6 +58,7 @@ export function defaultScheduleForm(now: Date): ScheduleForm {tomorrow.setDate(now.getDate() + 1);return {repeat: "daily",+ hours: 1,time: "09:00",date: localDateKey(tomorrow),days: [isoWeekday(now)],@@ -69,6 +73,8 @@ export function formFromSchedule(schedule: TaskSchedule, now: Date): ScheduleForconst [date, time] = schedule.at.split("T");return { ...form, repeat: "once", date, time };}+ case "hourly":+ return { ...form, repeat: "hourly", hours: schedule.hours };case "daily":return { ...form, repeat: "daily", time: schedule.time };case "weekly":@@ -84,6 +90,8 @@ export function scheduleFromForm(form: ScheduleForm): TaskSchedule {switch (form.repeat) {case "once":return { kind: "once", at: `${form.date}T${form.time}` };+ case "hourly":+ return { kind: "hourly", hours: form.hours };case "daily":return { kind: "daily", time: form.time };case "weekdays":@@ -100,6 +108,9 @@ export function scheduleFromForm(form: ScheduleForm): TaskSchedule {}export function scheduleFormComplete(form: ScheduleForm): boolean {+ if (form.repeat === "hourly") {+ return Number.isInteger(form.hours) && form.hours >= 1 && form.hours <= 24;+ }if (!CLOCK.test(form.time)) return false;switch (form.repeat) {case "once":@@ -199,6 +210,8 @@ export function sameSchedule(a: TaskSchedule, b: TaskSchedule): boolean {switch (a.kind) {case "once":return b.kind === "once" && a.at === b.at;+ case "hourly":+ return b.kind === "hourly" && a.hours === b.hours;case "daily":return b.kind === "daily" && a.time === b.time;case "weekly":@@ -214,12 +227,19 @@ export function sameSchedule(a: TaskSchedule, b: TaskSchedule): boolean {}export type ScheduleSummary =+ | { key: "hourly"; values: Record<string, never> }+ | { key: "everyHours"; values: { hours: number } }| { key: "once"; values: { date: string; time: string } }| { key: "daily" | "weekdays"; values: { time: string } }| { key: "weekly"; values: { days: string; time: string } }| { key: "monthly"; values: { day: number; time: string } };export function summarizeSchedule(schedule: TaskSchedule, locale: string): ScheduleSummary {+ if (schedule.kind === "hourly") {+ return schedule.hours === 1+ ? { key: "hourly", values: {} }+ : { key: "everyHours", values: { hours: schedule.hours } };+ }const clock = schedule.kind === "once" ? schedule.at.split("T")[1] : schedule.time;const time = formatClock(clock, locale);switch (schedule.kind) {@@ -243,12 +263,17 @@ export function summarizeSchedule(schedule: TaskSchedule, locale: string): Sched/** The Repeats column: the cadence alone; weekly is the days themselves. */export type RepeatsSummary =- | { key: "once" | "daily" | "weekdays" }+ | { key: "once" | "hourly" | "daily" | "weekdays" }+ | { key: "everyHours"; hours: number }| { key: "weekly"; days: string }| { key: "monthly"; day: number };export function summarizeRepeats(schedule: TaskSchedule, locale: string): RepeatsSummary {switch (schedule.kind) {+ case "hourly":+ return schedule.hours === 1+ ? { key: "hourly" }+ : { key: "everyHours", hours: schedule.hours };case "once":case "daily":return { key: schedule.kind };diff --git a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsxindex 7534ed456e3..a7c9ba4a69d 100644--- a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx+++ b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx@@ -67,6 +67,7 @@ import { useScheduledTasksStore } from "./store";const REPEAT_LABELS: Record<RepeatKind, TranslationKey> = {once: "scheduledTasks.form.once",+ hourly: "scheduledTasks.form.hourly",daily: "scheduledTasks.form.daily",weekdays: "scheduledTasks.form.weekdays",weekly: "scheduledTasks.form.weekly",@@ -503,6 +504,21 @@ export function TaskDialog({</SelectContent></Select></Row>+ {form.repeat === "hourly" && (+ <Row id={`${ids}-hours`} label={t("scheduledTasks.form.intervalHours")}>+ <Input+ id={`${ids}-hours`}+ type="number"+ min={1}+ max={24}+ step={1}+ value={Number.isNaN(form.hours) ? "" : form.hours}+ onChange={(event) => patchForm({ hours: event.target.valueAsNumber })}+ disabled={busy}+ className={cn(BARE_INPUT, "w-24 pr-8")}+ />+ </Row>+ )}{form.repeat === "once" && (<Row id={`${ids}-date`} label={t("scheduledTasks.form.date")}><Input@@ -563,27 +579,34 @@ export function TaskDialog({</div></Row>)}- <Row id={`${ids}-time`} label={t("scheduledTasks.form.time")}>- <Select- value={form.time}- onValueChange={(value) => patchForm({ time: value })}- disabled={busy}- >- <SelectTrigger id={`${ids}-time`} title={timezone} className={BARE_SELECT}>- <SelectValue>- {`${formatClock(form.time, locale)} ${zoneLabel(timezone, locale, now.getTime())}`}- </SelectValue>- </SelectTrigger>- <SelectContent align="end" className={LONG_LIST}>- {timeChoices(form.time).map((time) => (- <SelectItem key={time} value={time}>- {formatClock(time, locale)}- </SelectItem>- ))}- </SelectContent>- </Select>- </Row>+ {form.repeat !== "hourly" && (+ <Row id={`${ids}-time`} label={t("scheduledTasks.form.time")}>+ <Select+ value={form.time}+ onValueChange={(value) => patchForm({ time: value })}+ disabled={busy}+ >+ <SelectTrigger id={`${ids}-time`} title={timezone} className={BARE_SELECT}>+ <SelectValue>+ {`${formatClock(form.time, locale)} ${zoneLabel(timezone, locale, now.getTime())}`}+ </SelectValue>+ </SelectTrigger>+ <SelectContent align="end" className={LONG_LIST}>+ {timeChoices(form.time).map((time) => (+ <SelectItem key={time} value={time}>+ {formatClock(time, locale)}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </Row>+ )}</div>+ {form.repeat === "hourly" && (+ <p className="-mt-2 px-1 text-ui-13 text-muted-foreground">+ {t("scheduledTasks.form.hourlyNote")}+ </p>+ )}{form.repeat === "monthly" && form.dayOfMonth > 28 && (<p className="-mt-2 px-1 text-ui-13 text-muted-foreground">{t("scheduledTasks.form.lastDayNote")}diff --git a/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx b/studio/frontend/src/features/scheduled-tasks/tasks-page.tsxindex 41015c6c3cd..2bd16967058 100644--- a/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx+++ b/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx@@ -118,12 +118,25 @@ function repeatsText(t: (key: TranslationKey, values?: InterpolationValues) => string,): string {const summary = summarizeRepeats(schedule, locale);+ if (summary.key === "everyHours") {+ return t("scheduledTasks.schedule.everyHours", { hours: summary.hours });+ }if (summary.key === "weekly") return summary.days;if (summary.key === "monthly") return t("scheduledTasks.monthlyDay", { day: summary.day });return t(`scheduledTasks.form.${summary.key}`);}-function clockText(schedule: TaskSchedule, locale: string): string {+function clockText(task: ScheduledTask, locale: string): string {+ const { schedule } = task;+ if (schedule.kind === "hourly") {+ return task.nextRunAt === null+ ? "—"+ : new Intl.DateTimeFormat(locale, {+ hour: "numeric",+ minute: "2-digit",+ timeZone: task.timezone,+ }).format(task.nextRunAt);+ }return formatClock(schedule.kind === "once" ? schedule.at.split("T")[1] : schedule.time, locale);}@@ -183,7 +196,7 @@ function TaskRow({formatRelativeTime(locale, ...relativeTimeParts(Math.min(at, now - 1_000), now));const finishedAt = run?.finishedAt ?? null;const repeats = repeatsText(task.schedule, locale, t);- const clock = clockText(task.schedule, locale);+ const clock = clockText(task, locale);const nextDay = task.nextRunAt === null ? "—" : formatRunDay(task.nextRunAt, now, locale, task.timezone);return (diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 555c3109b4b..227b0d682c4 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -4457,6 +4457,8 @@ export const ar = {edit: "تعديل",options: "خيارات المهمة",schedule: {+ hourly: "كل ساعة",+ everyHours: "كل {hours} ساعة",once: "مرة واحدة، {date} في {time}",daily: "كل يوم في {time}",weekdays: "أيام العمل في {time}",@@ -4464,6 +4466,9 @@ export const ar = {monthly: "كل شهر في اليوم {day} في {time}",},form: {+ hourly: "كل ساعة",+ intervalHours: "الفاصل الزمني (بالساعات)",+ hourlyNote: "يبدأ التشغيل الأول بعد مرور فاصل زمني واحد من الحفظ. يؤدي تغيير الفاصل الزمني أو استئناف المهمة إلى بدء الانتظار من جديد.",createTitle: "جدولة مهمة",editTitle: "تعديل المهمة المجدولة",name: "الاسم",diff --git a/studio/frontend/src/i18n/locales/cs.ts b/studio/frontend/src/i18n/locales/cs.tsindex 57f7d7906cc..18381538526 100644--- a/studio/frontend/src/i18n/locales/cs.ts+++ b/studio/frontend/src/i18n/locales/cs.ts@@ -4819,6 +4819,8 @@ export const cs = {edit: "Upravit",options: "Možnosti úlohy",schedule: {+ hourly: "Každou hodinu",+ everyHours: "Každých {hours} h",once: "Jednou, {date} v {time}",daily: "Každý den v {time}",weekdays: "Každý pracovní den v {time}",@@ -4826,6 +4828,9 @@ export const cs = {monthly: "Každý měsíc, den {day}, v {time}",},form: {+ hourly: "Každou hodinu",+ intervalHours: "Interval (hodiny)",+ hourlyNote: "První spuštění proběhne jeden interval po uložení. Změna intervalu nebo obnovení spustí čekání znovu.",createTitle: "Naplánovat úlohu",editTitle: "Upravit naplánovanou úlohu",name: "Název",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex 31548911042..eb7a48e9176 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -4532,6 +4532,8 @@ export const de = {edit: "Bearbeiten",options: "Aufgabenoptionen",schedule: {+ hourly: "Jede Stunde",+ everyHours: "Alle {hours} Stunden",once: "Einmalig, {date} um {time}",daily: "Täglich um {time}",weekdays: "Werktags um {time}",@@ -4539,6 +4541,9 @@ export const de = {monthly: "Monatlich am {day}. um {time}",},form: {+ hourly: "Stündlich",+ intervalHours: "Intervall (Stunden)",+ hourlyNote: "Der erste Lauf erfolgt ein Intervall nach dem Speichern. Beim Ändern des Intervalls oder Fortsetzen beginnt die Wartezeit von vorn.",createTitle: "Aufgabe planen",editTitle: "Geplante Aufgabe bearbeiten",name: "Name",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 59e72a18817..59b3c355c99 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -4472,6 +4472,8 @@ export const en = {edit: "Edit",options: "Task options",schedule: {+ hourly: "Every hour",+ everyHours: "Every {hours} hours",once: "Once, {date} at {time}",daily: "Every day at {time}",weekdays: "Every weekday at {time}",@@ -4480,6 +4482,9 @@ export const en = {monthly: "Every month on day {day} at {time}",},form: {+ hourly: "Hourly",+ intervalHours: "Interval (hours)",+ hourlyNote: "The first run is one interval after saving. Changing the interval or resuming restarts the wait.",createTitle: "Schedule a task",editTitle: "Edit scheduled task",name: "Name",diff --git a/studio/frontend/src/i18n/locales/es-419.ts b/studio/frontend/src/i18n/locales/es-419.tsindex 433560f0494..9986efacc10 100644--- a/studio/frontend/src/i18n/locales/es-419.ts+++ b/studio/frontend/src/i18n/locales/es-419.ts@@ -4883,6 +4883,8 @@ export const es419 = {edit: "Editar",options: "Opciones de la tarea",schedule: {+ hourly: "Cada hora",+ everyHours: "Cada {hours} horas",once: "Una vez, el {date} a las {time}",daily: "Todos los días a las {time}",weekdays: "Entre semana a las {time}",@@ -4890,6 +4892,9 @@ export const es419 = {monthly: "Cada mes el día {day} a las {time}",},form: {+ hourly: "Cada hora",+ intervalHours: "Intervalo (horas)",+ hourlyNote: "La primera ejecución ocurre un intervalo después de guardar. Cambiar el intervalo o reanudar reinicia la espera.",createTitle: "Programar una tarea",editTitle: "Editar tarea programada",name: "Nombre",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex d2a6332bcad..11285d9f3e3 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -4531,6 +4531,8 @@ export const es = {edit: "Editar",options: "Opciones de la tarea",schedule: {+ hourly: "Cada hora",+ everyHours: "Cada {hours} horas",once: "Una vez, el {date} a las {time}",daily: "Todos los días a las {time}",weekdays: "Entre semana a las {time}",@@ -4538,6 +4540,9 @@ export const es = {monthly: "Cada mes el día {day} a las {time}",},form: {+ hourly: "Cada hora",+ intervalHours: "Intervalo (horas)",+ hourlyNote: "La primera ejecución comienza un intervalo después de guardar. Cambiar el intervalo o reanudar reinicia la espera.",createTitle: "Programar una tarea",editTitle: "Editar tarea programada",name: "Nombre",diff --git a/studio/frontend/src/i18n/locales/fa.ts b/studio/frontend/src/i18n/locales/fa.tsindex 587f9eb2d6c..44efa6f1f42 100644--- a/studio/frontend/src/i18n/locales/fa.ts+++ b/studio/frontend/src/i18n/locales/fa.ts@@ -4773,6 +4773,8 @@ export const fa = {edit: "ویرایش",options: "گزینههای وظیفه",schedule: {+ hourly: "هر ساعت",+ everyHours: "هر {hours} ساعت",once: "یک بار، {date} ساعت {time}",daily: "هر روز ساعت {time}",weekdays: "هر روز کاری ساعت {time}",@@ -4780,6 +4782,9 @@ export const fa = {monthly: "هر ماه در روز {day} ساعت {time}",},form: {+ hourly: "ساعتی",+ intervalHours: "فاصله (ساعت)",+ hourlyNote: "نخستین اجرا یک فاصله پس از ذخیره انجام میشود. تغییر فاصله یا ازسرگیری، انتظار را از نو آغاز میکند.",createTitle: "زمانبندی یک وظیفه",editTitle: "ویرایش وظیفهٔ زمانبندیشده",name: "نام",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex 6e370b7ba16..af1034e1bb1 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -4542,6 +4542,8 @@ export const fr = {edit: "Modifier",options: "Options de la tâche",schedule: {+ hourly: "Toutes les heures",+ everyHours: "Toutes les {hours} heures",once: "Une fois, le {date} à {time}",daily: "Tous les jours à {time}",weekdays: "En semaine à {time}",@@ -4549,6 +4551,9 @@ export const fr = {monthly: "Tous les mois le {day} à {time}",},form: {+ hourly: "Toutes les heures",+ intervalHours: "Intervalle (heures)",+ hourlyNote: "La première exécution a lieu un intervalle après l’enregistrement. Modifier l’intervalle ou reprendre la tâche relance le délai d’attente.",createTitle: "Planifier une tâche",editTitle: "Modifier la tâche planifiée",name: "Nom",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex d612069ae48..56e1a86fb73 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -4537,6 +4537,8 @@ export const he = {edit: "עריכה",options: "אפשרויות משימה",schedule: {+ hourly: "כל שעה",+ everyHours: "כל {hours} שעות",once: "פעם אחת, {date} ב-{time}",daily: "כל יום ב-{time}",weekdays: "בימי חול ב-{time}",@@ -4544,6 +4546,9 @@ export const he = {monthly: "בכל חודש ביום {day} ב-{time}",},form: {+ hourly: "כל שעה",+ intervalHours: "מרווח (שעות)",+ hourlyNote: "ההרצה הראשונה תתחיל לאחר מרווח אחד מרגע השמירה. שינוי המרווח או חידוש המשימה מתחילים את ההמתנה מחדש.",createTitle: "תזמון משימה",editTitle: "עריכת משימה מתוזמנת",name: "שם",diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 40fcb225da7..f15548fa377 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -4468,6 +4468,8 @@ export const hi = {edit: "संपादित करें",options: "टास्क विकल्प",schedule: {+ hourly: "हर घंटे",+ everyHours: "हर {hours} घंटे",once: "एक बार, {date} को {time} बजे",daily: "हर दिन {time} बजे",weekdays: "हर कार्यदिवस {time} बजे",@@ -4475,6 +4477,9 @@ export const hi = {monthly: "हर महीने की {day} तारीख को {time} बजे",},form: {+ hourly: "हर घंटे",+ intervalHours: "अंतराल (घंटे)",+ hourlyNote: "सहेजने के एक अंतराल बाद पहली बार चलेगा। अंतराल बदलने या फिर से शुरू करने पर प्रतीक्षा दोबारा शुरू होगी।",createTitle: "टास्क शेड्यूल करें",editTitle: "शेड्यूल किया गया टास्क संपादित करें",name: "नाम",diff --git a/studio/frontend/src/i18n/locales/id.ts b/studio/frontend/src/i18n/locales/id.tsindex 64d62a5f6f6..d029bf2a014 100644--- a/studio/frontend/src/i18n/locales/id.ts+++ b/studio/frontend/src/i18n/locales/id.ts@@ -4803,6 +4803,8 @@ export const id = {edit: "Edit",options: "Opsi tugas",schedule: {+ hourly: "Setiap jam",+ everyHours: "Setiap {hours} jam",once: "Sekali, {date} pukul {time}",daily: "Setiap hari pukul {time}",weekdays: "Setiap hari kerja pukul {time}",@@ -4810,6 +4812,9 @@ export const id = {monthly: "Setiap bulan pada tanggal {day} pukul {time}",},form: {+ hourly: "Per jam",+ intervalHours: "Interval (jam)",+ hourlyNote: "Eksekusi pertama dimulai satu interval setelah disimpan. Mengubah interval atau melanjutkan akan memulai ulang waktu tunggu.",createTitle: "Jadwalkan tugas",editTitle: "Edit tugas terjadwal",name: "Nama",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 60d56ba6445..e74b69863aa 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -4527,6 +4527,8 @@ export const it = {edit: "Modifica",options: "Opzioni attività",schedule: {+ hourly: "Ogni ora",+ everyHours: "Ogni {hours} ore",once: "Una volta, il {date} alle {time}",daily: "Ogni giorno alle {time}",weekdays: "Nei giorni feriali alle {time}",@@ -4534,6 +4536,9 @@ export const it = {monthly: "Ogni mese il giorno {day} alle {time}",},form: {+ hourly: "Ogni ora",+ intervalHours: "Intervallo (ore)",+ hourlyNote: "La prima esecuzione avviene un intervallo dopo il salvataggio. Modificare l’intervallo o riprendere l’attività riavvia l’attesa.",createTitle: "Pianifica un’attività",editTitle: "Modifica attività pianificata",name: "Nome",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 2c5d594903e..190ba31d2fd 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -4407,6 +4407,8 @@ export const ja = {edit: "編集",options: "タスクのオプション",schedule: {+ hourly: "1時間ごと",+ everyHours: "{hours}時間ごと",once: "1 回のみ、{date} {time}",daily: "毎日 {time}",weekdays: "平日 {time}",@@ -4414,6 +4416,9 @@ export const ja = {monthly: "毎月 {day} 日 {time}",},form: {+ hourly: "時間ごと",+ intervalHours: "間隔(時間)",+ hourlyNote: "保存してから指定した間隔が経過すると初回の実行が始まります。間隔の変更や再開を行うと、待機時間がリセットされます。",createTitle: "タスクをスケジュール",editTitle: "スケジュール済みタスクを編集",name: "名前",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex f202b3abb73..de072676285 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -4447,6 +4447,8 @@ export const ko = {edit: "편집",options: "작업 옵션",schedule: {+ hourly: "매시간",+ everyHours: "{hours}시간마다",once: "한 번, {date} {time}",daily: "매일 {time}",weekdays: "평일 {time}",@@ -4454,6 +4456,9 @@ export const ko = {monthly: "매월 {day}일 {time}",},form: {+ hourly: "시간마다",+ intervalHours: "간격(시간)",+ hourlyNote: "저장한 뒤 설정한 간격이 지나면 처음 실행됩니다. 간격을 변경하거나 작업을 재개하면 대기 시간이 다시 시작됩니다.",createTitle: "작업 예약",editTitle: "예약 작업 편집",name: "이름",diff --git a/studio/frontend/src/i18n/locales/nl.ts b/studio/frontend/src/i18n/locales/nl.tsindex 8a0d7b84338..b526ceb8cec 100644--- a/studio/frontend/src/i18n/locales/nl.ts+++ b/studio/frontend/src/i18n/locales/nl.ts@@ -4852,6 +4852,8 @@ export const nl = {edit: "Bewerken",options: "Taakopties",schedule: {+ hourly: "Elk uur",+ everyHours: "Elke {hours} uur",once: "Eenmalig, {date} om {time}",daily: "Elke dag om {time}",weekdays: "Elke werkdag om {time}",@@ -4859,6 +4861,9 @@ export const nl = {monthly: "Elke maand op dag {day} om {time}",},form: {+ hourly: "Elk uur",+ intervalHours: "Interval (uren)",+ hourlyNote: "De eerste uitvoering vindt één interval na het opslaan plaats. Het interval wijzigen of hervatten start de wachttijd opnieuw.",createTitle: "Een taak plannen",editTitle: "Geplande taak bewerken",name: "Naam",diff --git a/studio/frontend/src/i18n/locales/pl.ts b/studio/frontend/src/i18n/locales/pl.tsindex 9e24d7c6818..c4c57145b48 100644--- a/studio/frontend/src/i18n/locales/pl.ts+++ b/studio/frontend/src/i18n/locales/pl.ts@@ -4850,6 +4850,8 @@ export const pl = {edit: "Edytuj",options: "Opcje zadania",schedule: {+ hourly: "Co godzinę",+ everyHours: "Co {hours} godz.",once: "Jednorazowo, {date} o {time}",daily: "Codziennie o {time}",weekdays: "W dni robocze o {time}",@@ -4857,6 +4859,9 @@ export const pl = {monthly: "Co miesiąc, dzień {day}, o {time}",},form: {+ hourly: "Co godzinę",+ intervalHours: "Odstęp (godziny)",+ hourlyNote: "Pierwsze uruchomienie nastąpi jeden odstęp po zapisaniu. Zmiana odstępu lub wznowienie rozpoczyna oczekiwanie od nowa.",createTitle: "Zaplanuj zadanie",editTitle: "Edytuj zaplanowane zadanie",name: "Nazwa",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 5ddd6c32c2b..b476a822742 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -4487,6 +4487,8 @@ export const ptBR = {edit: "Editar",options: "Opções da tarefa",schedule: {+ hourly: "A cada hora",+ everyHours: "A cada {hours} horas",once: "Uma vez, em {date} às {time}",daily: "Todos os dias às {time}",weekdays: "Em dias úteis às {time}",@@ -4494,6 +4496,9 @@ export const ptBR = {monthly: "Todo mês no dia {day} às {time}",},form: {+ hourly: "A cada hora",+ intervalHours: "Intervalo (horas)",+ hourlyNote: "A primeira execução ocorre um intervalo após salvar. Alterar o intervalo ou retomar reinicia a espera.",createTitle: "Agendar uma tarefa",editTitle: "Editar tarefa agendada",name: "Nome",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex 1570d3a1168..b4c775c0f8a 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -4485,6 +4485,8 @@ export const ru = {edit: "Изменить",options: "Параметры задачи",schedule: {+ hourly: "Каждый час",+ everyHours: "С интервалом {hours} ч.",once: "Однократно, {date} в {time}",daily: "Каждый день в {time}",weekdays: "По будням в {time}",@@ -4492,6 +4494,9 @@ export const ru = {monthly: "Каждый месяц, {day}-го числа, в {time}",},form: {+ hourly: "Каждый час",+ intervalHours: "Интервал (часы)",+ hourlyNote: "Первый запуск произойдёт через один интервал после сохранения. Изменение интервала или возобновление задачи начинает отсчёт заново.",createTitle: "Запланировать задачу",editTitle: "Изменить запланированную задачу",name: "Название",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 781ce04126e..24ee0f184ed 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -4673,6 +4673,8 @@ export const sv = {edit: "Redigera",options: "Uppgiftsalternativ",schedule: {+ hourly: "Varje timme",+ everyHours: "Med {hours} timmars intervall",once: "En gång, {date} kl. {time}",daily: "Varje dag kl. {time}",weekdays: "Vardagar kl. {time}",@@ -4680,6 +4682,9 @@ export const sv = {monthly: "Dag {day} varje månad kl. {time}",},form: {+ hourly: "Varje timme",+ intervalHours: "Intervall (timmar)",+ hourlyNote: "Den första körningen sker ett intervall efter att du sparat. Om du ändrar intervallet eller återupptar uppgiften börjar väntetiden om.",createTitle: "Schemalägg en uppgift",editTitle: "Redigera schemalagd uppgift",name: "Namn",diff --git a/studio/frontend/src/i18n/locales/th.ts b/studio/frontend/src/i18n/locales/th.tsindex afd23c296ea..0c5f7489391 100644--- a/studio/frontend/src/i18n/locales/th.ts+++ b/studio/frontend/src/i18n/locales/th.ts@@ -4573,6 +4573,8 @@ export const th = {edit: "แก้ไข",options: "ตัวเลือกงาน",schedule: {+ hourly: "ทุกชั่วโมง",+ everyHours: "ทุก {hours} ชั่วโมง",once: "ครั้งเดียว {date} เวลา {time}",daily: "ทุกวันเวลา {time}",weekdays: "ทุกวันทำงานเวลา {time}",@@ -4580,6 +4582,9 @@ export const th = {monthly: "ทุกเดือนวันที่ {day} เวลา {time}",},form: {+ hourly: "รายชั่วโมง",+ intervalHours: "ช่วงห่าง (ชั่วโมง)",+ hourlyNote: "การเรียกใช้ครั้งแรกจะเกิดขึ้นหลังจากบันทึกครบหนึ่งช่วงห่าง การเปลี่ยนช่วงห่างหรือการทำงานต่อจะเริ่มนับเวลารอใหม่",createTitle: "ตั้งเวลางาน",editTitle: "แก้ไขงานตามกำหนดเวลา",name: "ชื่อ",diff --git a/studio/frontend/src/i18n/locales/tr.ts b/studio/frontend/src/i18n/locales/tr.tsindex 445c88a01ca..ea678b81d26 100644--- a/studio/frontend/src/i18n/locales/tr.ts+++ b/studio/frontend/src/i18n/locales/tr.ts@@ -4801,6 +4801,8 @@ export const tr = {edit: "Düzenle",options: "Görev seçenekleri",schedule: {+ hourly: "Her saat",+ everyHours: "Her {hours} saatte bir",once: "Bir kez, {date} saat {time}",daily: "Her gün saat {time}",weekdays: "Her hafta içi saat {time}",@@ -4808,6 +4810,9 @@ export const tr = {monthly: "Her ayın {day}. günü saat {time}",},form: {+ hourly: "Saatlik",+ intervalHours: "Aralık (saat)",+ hourlyNote: "İlk çalıştırma, kaydettikten bir aralık sonra yapılır. Aralığı değiştirmek veya devam ettirmek beklemeyi yeniden başlatır.",createTitle: "Görev zamanla",editTitle: "Zamanlanmış görevi düzenle",name: "Ad",diff --git a/studio/frontend/src/i18n/locales/uk.ts b/studio/frontend/src/i18n/locales/uk.tsindex aae1cecabb5..06fe5d41a6c 100644--- a/studio/frontend/src/i18n/locales/uk.ts+++ b/studio/frontend/src/i18n/locales/uk.ts@@ -4840,6 +4840,8 @@ export const uk = {edit: "Редагувати",options: "Параметри завдання",schedule: {+ hourly: "Щогодини",+ everyHours: "Кожні {hours} год",once: "Одноразово, {date} о {time}",daily: "Щодня о {time}",weekdays: "Щобудня о {time}",@@ -4847,6 +4849,9 @@ export const uk = {monthly: "Щомісяця, день {day}, о {time}",},form: {+ hourly: "Щогодини",+ intervalHours: "Інтервал (години)",+ hourlyNote: "Перший запуск відбудеться через один інтервал після збереження. Зміна інтервалу або відновлення починає очікування заново.",createTitle: "Запланувати завдання",editTitle: "Редагувати заплановане завдання",name: "Назва",diff --git a/studio/frontend/src/i18n/locales/vi.ts b/studio/frontend/src/i18n/locales/vi.tsindex 75ea9c19da8..ca7366c6187 100644--- a/studio/frontend/src/i18n/locales/vi.ts+++ b/studio/frontend/src/i18n/locales/vi.ts@@ -4800,6 +4800,8 @@ export const vi = {edit: "Sửa",options: "Tùy chọn tác vụ",schedule: {+ hourly: "Mỗi giờ",+ everyHours: "Mỗi {hours} giờ",once: "Một lần, {date} lúc {time}",daily: "Hằng ngày lúc {time}",weekdays: "Mỗi ngày trong tuần lúc {time}",@@ -4807,6 +4809,9 @@ export const vi = {monthly: "Hằng tháng vào ngày {day} lúc {time}",},form: {+ hourly: "Hằng giờ",+ intervalHours: "Khoảng cách (giờ)",+ hourlyNote: "Lần chạy đầu tiên diễn ra sau một khoảng cách kể từ khi lưu. Thay đổi khoảng cách hoặc tiếp tục sẽ bắt đầu lại thời gian chờ.",createTitle: "Lên lịch tác vụ",editTitle: "Sửa tác vụ theo lịch",name: "Tên",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex bd9872e9c77..2947957a751 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -4358,6 +4358,8 @@ export const zhCN = {edit: "编辑",options: "任务选项",schedule: {+ hourly: "每小时",+ everyHours: "每 {hours} 小时",once: "仅一次,{date} {time}",daily: "每天 {time}",weekdays: "工作日 {time}",@@ -4365,6 +4367,9 @@ export const zhCN = {monthly: "每月 {day} 日 {time}",},form: {+ hourly: "每小时",+ intervalHours: "间隔(小时)",+ hourlyNote: "保存后经过一个间隔执行第一次任务。更改间隔或恢复任务会重新开始等待。",createTitle: "安排任务",editTitle: "编辑定时任务",name: "名称",diff --git a/studio/frontend/src/i18n/locales/zh-TW.ts b/studio/frontend/src/i18n/locales/zh-TW.tsindex c425254e062..6435ca2c154 100644--- a/studio/frontend/src/i18n/locales/zh-TW.ts+++ b/studio/frontend/src/i18n/locales/zh-TW.ts@@ -4529,6 +4529,8 @@ export const zhTW = {edit: "編輯",options: "任務選項",schedule: {+ hourly: "每小時",+ everyHours: "每 {hours} 小時",once: "一次,{date} {time}",daily: "每天 {time}",weekdays: "每個工作日 {time}",@@ -4536,6 +4538,9 @@ export const zhTW = {monthly: "每月 {day} 日 {time}",},form: {+ hourly: "每小時",+ intervalHours: "間隔(小時)",+ hourlyNote: "首次執行會在儲存後經過一個間隔開始。變更間隔或繼續執行會重新開始等待。",createTitle: "排程任務",editTitle: "編輯排程任務",name: "名稱",diff --git a/studio/frontend/tests/scheduled-tasks.test.ts b/studio/frontend/tests/scheduled-tasks.test.tsindex 2bfd4d135d0..18796906abc 100644--- a/studio/frontend/tests/scheduled-tasks.test.ts+++ b/studio/frontend/tests/scheduled-tasks.test.ts@@ -63,6 +63,7 @@ function plain(summary: ScheduleSummary): ScheduleSummary {test("a new task runs every day at 09:00, and a one-time one starts tomorrow", () => {assert.deepEqual(defaultScheduleForm(new Date(2026, 9, 14, 16, 30)), {repeat: "daily",+ hours: 1,time: "09:00",date: "2026-10-15",days: [3],@@ -75,6 +76,10 @@ test("the form round-trips every kind of schedule", () => {const now = new Date(2026, 9, 14);const schedules: TaskSchedule[] = [{ kind: "once", at: "2026-10-15T09:30" },+ { kind: "hourly", hours: 1 },+ { kind: "hourly", hours: 2 },+ { kind: "hourly", hours: 5 },+ { kind: "hourly", hours: 24 },{ kind: "daily", time: "07:00" },{ kind: "weekly", time: "18:00", days: [1, 2, 3, 4, 5] },{ kind: "weekly", time: "18:00", days: [2, 6] },@@ -109,6 +114,42 @@ test("an incomplete form cannot be saved", () => {assert.equal(scheduleFormComplete({ ...form, days: [], date: "" }), true);});+test("hourly intervals accept whole hours from 1 to 24 independently of calendar fields", () => {+ const form = { ...defaultScheduleForm(new Date(2026, 9, 14)), repeat: "hourly" as const, time: "", date: "" };+ for (const hours of [1, 2, 5, 24]) {+ assert.equal(scheduleFormComplete({ ...form, hours }), true);+ assert.deepEqual(scheduleFromForm({ ...form, hours }), { kind: "hourly", hours });+ }+ for (const hours of [0, -1, 1.5, 25, Number.NaN, Number.POSITIVE_INFINITY]) {+ assert.equal(scheduleFormComplete({ ...form, hours }), false);+ }+});++test("editing an hourly interval preserves its cadence unless the hour count changes", () => {+ const hourly: TaskSchedule = { kind: "hourly", hours: 2 };+ const form = formFromSchedule(hourly, new Date(2026, 9, 14));+ assert.ok(sameSchedule(hourly, scheduleFromForm(form)));+ assert.ok(!sameSchedule(hourly, scheduleFromForm({ ...form, hours: 3 })));+ assert.ok(!sameSchedule(hourly, { kind: "daily", time: "09:00" }));+ assert.ok(!sameSchedule({ kind: "daily", time: "09:00" }, hourly));+ assert.ok(!sameSchedule({ kind: "hourly", hours: 24 }, { kind: "daily", time: "09:00" }));+});++test("hourly summaries distinguish one hour from custom intervals without a wall-clock time", () => {+ assert.deepEqual(summarizeSchedule({ kind: "hourly", hours: 1 }, "en-US"), {+ key: "hourly", values: {},+ });+ assert.deepEqual(summarizeRepeats({ kind: "hourly", hours: 1 }, "en-US"), { key: "hourly" });+ for (const hours of [2, 5, 24]) {+ assert.deepEqual(summarizeSchedule({ kind: "hourly", hours }, "en-US"), {+ key: "everyHours", values: { hours },+ });+ assert.deepEqual(summarizeRepeats({ kind: "hourly", hours }, "en-US"), {+ key: "everyHours", hours,+ });+ }+});+test("schedules compare by what they mean", () => {assert.ok(sameSchedule(