Skip to content

E-commerce 0.5.24: The translation sweep no longer crashes on a prompt clash

E-commerce 0.5.24 fixes a crash in the shop’s background AI translation sweep, for shops that translate products and categories with the AI module.

The sweep creates the translation prompt it needs when the prompt is missing. Each tick runs inside a database transaction, so when that create failed (two servers creating it at once, or another prompt already holding the name), the failure aborted the whole transaction and the tick crashed on its next read. The create now runs on its own, the failure stays contained, and the sweep handles it as a failed prompt create instead of crashing.

No migration and no configuration: update the dependency.

Full release notes: E-commerce 0.5.24

0.5.24 · 13 October 2026

Fixed

  • Sweep tick crash on a lost prompt create. The tick runs inside a transaction; a failed insert in PromptRollout (a lost create race, a name another prompt already holds) aborted it and the re-read raised in_failed_sql_transaction. The insert now runs in a savepoint and the rollout answers {:error, :prompt_create_failed} as intended.

E-commerce 0.5.24. Install or update: {:phoenix_kit_ecommerce, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.