Files
music_library/backlog/tasks/ml-171 - Fix-Oban-Web-crons-page-crash-MatchError-in-sparkline-from-SQLite-datetime-string.md
T
2026-05-11 14:18:29 +01:00

1.3 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, references, modified_files, priority
id title status assignee created_date updated_date labels dependencies references modified_files priority
ML-171 Fix Oban Web crons page crash: MatchError in sparkline from SQLite datetime string To Do
2026-05-09 05:28 2026-05-11 13:17
bug
oban-web
ready
https://github.com/oban-bg/oban_web/blob/main/lib/oban/web/live/crons/table_component.ex#L78-L85
https://github.com/oban-bg/oban_web/blob/main/lib/oban/web/queries/cron_query.ex#L164-L177
lib/music_library_web/live/oban/crons/table_component.ex
medium

Description

Summary

The /dev/oban/crons dashboard page crashes with Elixir.MatchError when rendering cron job history sparklines. This happens because Oban Web's TableComponent.sparkline/1 calls DateTime.from_naive!/2 which expects a NaiveDateTime struct, but receives a raw ISO 8601 string from SQLite.

This will be resolved when oban_web ships https://github.com/oban-bg/oban_web/commit/9e9b7ad470ac87cfcad67bec9140dc318549dc09

Acceptance Criteria

  • #1 Visiting /dev/oban/crons no longer crashes with MatchError
  • #2 Cron history sparklines render correctly showing job state colors