mix oban_claude.install (oban_claude v0.1.0)

Copy Markdown View Source

Scaffold a runnable SQLite-backed oban_claude setup.

Composes oban.install (steering it to SQLite and the Oban.Engines.Lite engine) and adds the claude-specific pieces on top: a sample worker, a telemetry logger, and a boot-time demo enqueue so iex -S mix shows a job run end to end.

Example

# into a fresh project
mix igniter.new my_app --install oban_claude

# or into an existing project
mix igniter.install oban_claude

Then:

iex -S mix

What it produces

  • an Ecto SQLite3 repo (module, dev/test config, supervision child)
  • Oban configured with Oban.Engines.Lite, its migration, and supervision
  • a sample ObanClaude.Worker on a :claude queue
  • a telemetry logger + a dev-only boot enqueue (the "watch" demo)

The sample worker ships with a stubbed, offline query_fun so the demo runs without a real (paid) claude call. Delete that one option to call claude.