跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/ccarvalho-eng/codex-elixir-phoenix/elixir-phoenix-oban

Codex Test Idempotent Elixir Background Jobs with Oban

Define job arguments, return values, and retry tests for an Elixir worker with repeatable database effects.

中文

Install in Codex

Use an Elixir project with Oban configured, a test database, and the project's matching test module.

  1. Copy the pinned `skills/elixir-phoenix-oban/` directory into `.agents/skills/elixir-phoenix-oban/` in the project.
  2. Check whether the project uses standard Oban or Pro, then read the pinned worker and testing references.

Example task

Pass `item_id=3` to a local `CatalogIndexWorker`. Run it twice in a fixture with `Oban.Testing` and count the resulting index rows in the test database.

What to check

The two runs process the same item, leave one index result, and enqueue only the required identifier.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Is Oban uniqueness enough for retries?

Unique enqueueing can reduce duplicate jobs. The worker also needs idempotent behavior when an existing job is retried.

Related skills from this repository

  • Codex Search and Document Known Phoenix Solutions
  • Codex Ecto Migration Planning for a PostgreSQL Column Backfill
  • Codex Document New Elixir Modules and Public Functions
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯