Cohere.Derive.Workers (Cohere v0.1.0)

Copy Markdown View Source

Derives the background-job surface: Oban workers plus the queue and cron wiring that lives only in application config.

Worker modules alone don't tell the whole story — in real apps the cron schedule exists exclusively in config :my_app, Oban, plugins: [...], so this deriver reads both the compiled modules and the host app's config.

Summary

Functions

Derives %Worker{} entries for the given worker modules, enriched with cron schedules from the app's Oban config, plus the queue topology.

Functions

derive(worker_modules, app)

Derives %Worker{} entries for the given worker modules, enriched with cron schedules from the app's Oban config, plus the queue topology.

Returns %{workers: [%Worker{}], queues: [...], crontab: [...]}.