Creates the opt-in last-seen ledger tables.
Add a migration in the host app and run it yourself; this library never migrates a database on its own:
defmodule MyApp.Repo.Migrations.AddQueueKeeperLedger do
use Ecto.Migration
def up, do: QueueKeeperCheck.Ledger.Migration.up()
def down, do: QueueKeeperCheck.Ledger.Migration.down()
endPass prefix: to put the tables in the same schema as that Oban instance
(Postgres). The prefix column on each row still stores the Oban prefix, so a
single schema can hold more than one instance if you need it.
Tables:
queue_keeper_worker_sightings— primary key(prefix, worker), pluslast_inserted_atand nullablelast_job_idqueue_keeper_ledger_meta— primary keyprefix, plusstarted_at(when recording began for that prefix)