Catalogue 0.30.1: The translation sweep no longer gets stuck
Catalogue 0.30.1 fixes the AI translation sweep, which could get stuck retrying the same rows and never reach the rest.
The sweep picks its rows in a fixed order. Rows the model kept failing on were queued again on every run, three attempts each, and everything behind them waited forever. The sweep now skips any row and language whose translation job was given up in the last 24 hours, and takes as many more rows instead. A manual Translate on the Translations page still works for those rows.
Also fixed:
- An item or category created with translations already filled in, by AI or by hand, is now marked as translated. Before, the Translations page showed it as Unknown and the sweep ignored it.
- A language disabled after the sweep’s languages were saved stops getting sweep jobs.
- An embedded item selector that a host page removed without closing it now stops on its own.
No change in requirements. Update the dependency.
Full release notes: Catalogue 0.30.1
0.30.1 · 13 September 2026
Follow-ups from the week review (dev_docs/WEEK_REVIEW_2026-09-07_13.md):
the items it recorded as “not fixed” that were this module’s to fix.
Fixed
- The translation sweep backs off from pairs whose job was discarded
in the last 24 hours. The candidate list is deterministic (sorted,
capped), so rows the model consistently failed on were re-enqueued on
every tick, three attempts each, and everything sorted behind them was
never reached.
TranslationSweepWorkernow reads the discardedTranslateWorkerjobs inside the back-off window from Oban’s job table and skips those pairs, widening the page by their count so the exclusion cannot empty it. The pair’s state is unchanged; a manual Translate on the Translations page is unaffected. - A resource created with translations already in hand is stamped
fresh, not born
:unknown. A value-mode AI translate on a not-yet-saved item, or a secondary-language name typed by hand, was made against the source the row is created with — yetcreate_item/2persisted it with no fingerprints, so the Translations page showed Unknown and the sweep ignored it until an operator stamped every language by hand.TranslationStatus.stamp_all_translated/1(new) runs after create in the item and category forms. Web.Settings.sweep_langs/0intersects a stored language list with the enabled languages, so a language disabled after the setting was written stops receiving sweep jobs — the same check the Translations page applies to a manual Translate.Web.ComponentRelaynotices an unacknowledged refresh on its own: the ack window is a timer, so an orphaned relay (a host that unmounted the popup without a close) exits when the window closes instead of waiting for a second catalogue event to arrive.
Changed
- The browse-sort vocabulary conformance test now also builds every
Search.apply_search_order/2clause without a database, so a field added to the two static lists but not to the fetch layer fails on a machine with no Postgres too (apply_search_order/2is public,@doc false, for that reason).
Catalogue 0.30.1. Install or update: {:phoenix_kit_catalogue, "~> 0.30"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.