You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 66ee71c
Browse filesBrowse the repository at this point in the historyBrowse files
Delete the rrule schedule type and its dateutil dependency
RRuleSchedule was the most intricate code in the package -- embedded-DTSTART
detection, bounded-rule rejection, walking dateutil's private _rrule/_rset
internals, and two separate timezone branches -- and it had no users. Nothing
in samples/, no external consumer and nothing outside this repo's own tests
ever constructed one, yet it absorbed two rounds of bug fixes (dtstart
re-anchoring, timezone handling). Two schedule types, cron and interval, cover
every real case and drop python-dateutil as a direct dependency.
Rows written by 0.0.1a2 may still hold schedule_type='rrule'. No migration is
added: per-task tick isolation already disables such a row with
last_status="error" and leaves the rest of the tick alone, so an unrecognised
type degrades exactly as any other unparseable schedule does. The README's
schedule-type section says so, for the operator who finds a disabled task.
The telemetry conformance test's schedule sentinel becomes a distinctive cron
expression, keeping its "schedule_config never reaches a span or metric"
coverage intact.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
├── telemetry_registry.py # Every span/metric name (docs + conformance test read it)
@@ -62,7 +62,7 @@ frontend/src/
62
62
63
63
**Tasks:** DB rows in `datasette_cron_tasks`. Reference a handler by name + JSON config + schedule. Created via `datasette._cron_scheduler.add_task(...)`.
64
64
65
-
**Schedules:**Three types — cron string (`"0 8 * * *"`), interval (`{"interval": 60}`), rrule (`{"rrule": "FREQ=WEEKLY;BYDAY=MO"}`). All support timezone.
65
+
**Schedules:**Two types — cron string (`"0 8 * * *"`) and interval (`{"interval": 60}`). Both support timezone.
0 commit comments