Skip to content

PhoenixKit 2.54.0: Missing cleanup jobs scheduled, and a log line for every email

PhoenixKit 2.54.0 schedules background jobs that older sites never ran, logs every email handed to a mail adapter, and lets tables drop less important columns instead of scrolling sideways.

Jobs older sites never ran

Three scheduled jobs were missing from existing installs. The trash purge job, which also queues the storage backfills and the reconciler, and the notifications prune job were in the generated crontab but not in what mix phoenix_kit.update adds to existing sites. The activity prune job was in no crontab at all, so no site ever pruned its activity feed. All three are now added by the update.

mix phoenix_kit.update also skipped several cron entries when the crontab ended in a comment, leaving sites without the job sweeper and other prune jobs. Config edits now find the real end of each list, and the update ends with one Manual steps needed block for any edit it could not make. To decline a cron entry, comment it out inside the crontab list.

A log line for every email

Every email handed to an adapter now leaves a log line with the subject, the adapter and a masked recipient, such as m***@don.ee: at info level when it was sent, at error level with the reason when not. The body is never logged.

Tables that fit

<.table_default fit> hides the least important columns when a table is too wide, and shows +N for how many are hidden. The Integrations table uses it.

Fixes

A second log-out, from a double click or another tab, no longer answers 403. The redirect from a disabled module’s page lands on the Modules page’s Disabled tab, where its switch is. Long setting labels no longer overlap.

Upgrading

No migration. Run mix phoenix_kit.update to add the missing jobs. Its first activity prune deletes activity entries older than activity_retention_days, 90 by default, from every site that had never pruned. Raise that setting before updating to keep more history, or comment the entry out of the crontab.

Full release notes: PhoenixKit 2.54.0

2.54.0 · 5 October 2026

Upgrading

  • mix phoenix_kit.update now schedules three workers that older hosts never ran, and the first run of Activity.PruneWorker deletes activity entries older than activity_retention_days (default 90) from every host that had never pruned. Raise the setting before updating to keep more history, or comment the entry out of the crontab to decline it (the updater leaves a commented-out entry alone).

Added

  • <.table_default fit> drops the least important columns instead of scrolling sideways. Header cells declare priority (the highest number goes first, equal priorities from the right; none never goes), lead (the one column that stays left and takes the slack) and width; the new TableFit hook measures the real table against its wrapper on mount, on resize and after every patch, and hides whole columns through one stylesheet, so stream inserts need nothing. The last visible header cell shows +N while columns are dropped, the remembered result is put back before first paint on a hard load, and printing shows every column. fit_pack={false} keeps the dropping and leaves the sizing to a table that sets its own column widths. The Integrations table uses it (Account goes first, then Name, then Status). Guide: dev_docs/guides/2026-09-11-core-components.md.
  • Every email handed to an adapter leaves a log line: the subject, the adapter (or the integration) and the recipient with the local part masked (m***@don.ee), at info when it was sent and at error, with the reason, when it was not. Addresses echoed in adapter errors are masked before truncation, including nested responses, SMTP charlists, exception structs and improper lists, and building the line can never change what deliver returns. Never the body, which carries single-use tokens. Without the optional emails package a send used to leave no trace at all, and a failed one returned an error to callers that show the same page either way.

Fixed

  • Cron backfills resolve worker aliases and inspect actual scheduled entries. An aliased digest worker (for example alias PhoenixKit.Notifications.DigestWorker, as: D) no longer makes the duplicate guard refuse every missing cadence. A worker mentioned in another job’s arguments, or a longer module name that begins with the worker’s name, no longer suppresses its own cron entry.
  • The table-fit +N indicator remains visible when the final columns are dropped. It is attached to the last surviving header instead of a hidden one.
  • Two crontab entries were never backfilled to existing hosts, and a third was in no crontab at all. Modules.Storage.Workers.PruneTrashJob and Notifications.PruneWorker were in the generated crontab but not in the update’s backfill list, so a host that installed before them never ran them. PruneTrashJob is more than the trash purge: it is what queues the storage backfills and the reconciler, so such a host never reconciled its storage profiles. Activity.PruneWorker was documented as running daily but was in no crontab (not the generated one, not the backfill), so no host ever pruned its activity feed. All three are now in the generated crontab, the manual-instructions text (which also lacked the job-run sweeper and prune and the bucket-log prune) and the backfill. A test now fails when a worker is in the generated crontab but not in the backfill, when the two crontab texts disagree, or when a worker’s docs say it runs on a schedule and no crontab has it.
  • mix phoenix_kit.update no longer skips cron entries when the host’s crontab ends in a comment. The Oban config backfill glued , onto the tail of the source text, so a comment after the last tuple took the comma, the edit stopped parsing and was rolled back, and the host was left without Jobs.SweepWorker (stuck job runs never recovered), Jobs.PruneWorker, BucketLogPruneWorker and LoginAttemptsPruneWorker. Every list splice (worker, digest and scheduled-job entries, the Cron plugin, Lifeline, queues) now goes through the new PhoenixKit.Install.ConfigSplice, which finds the end of the list with comments and string bodies masked and appends after the last real element. A splice that would change anything else the host wrote, or add a duplicate plugin, crontab entry or queue (Oban 2.24 names and alias resolved), is refused and leaves the file untouched.
  • The update ends with one “Manual steps needed” block listing every config edit it could not make (also when the run ends in a failed migration), and the success line says N manual step(s) below instead of claiming a clean update.
  • A second log-out no longer answers 403. The log-out button submits the CSRF token of the session it was rendered in; once that session is gone (a double click, a second tab) the host’s protect_from_forgery refused an action that had in fact succeeded. PhoenixKitWeb.Plugs.AlreadyLoggedOut, ahead of :browser on the log-out scopes, exempts such a request from the CSRF check only when there is no session token, no account stack and no remember-me cookie, so it takes the ordinary path: the same flash and the same locale-aware redirect as a first log-out. Wired by PhoenixKitWeb.Integration; a host adds nothing.
  • The redirect from a disabled module’s page lands on the Disabled tab (/admin/modules?tab=disabled), where the module’s card and its switch are. It went to the Active tab, which does not list the module at all, so the page read like a missing route. The Modules page honours ?tab=active|disabled|not_installed.
  • Setting labels on the Settings tabs no longer overlap. A long (translated) description widened the first column over the second; labels now wrap and every fieldset track is minmax(0, 1fr). The mention checkboxes use the checkbox’s own description slot.

Changed

  • Declining a cron entry means commenting it out inside the Cron plugin’s crontab:. The updater skips it, says so, and lists it in the closing summary. Before, a comment naming the worker anywhere in the file also suppressed the entry; a host that declined an entry that way must move the comment into its crontab list.
  • Provider icons sit in a tile of fixed size on the Integrations page, so glyphs that fill their box differently (an envelope against a sparkle) line up.

PhoenixKit 2.54.0. Install or update: {:phoenix_kit, "~> 2.54"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.