You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is returned when attempting to dispatch jobs with a custom jobs_table_name config:
[error] GenServer Rihanna.JobDispatcher terminating
** (ArgumentError) The Rihanna jobs table must be upgraded.
The easiest way to upgrade the database is with Ecto.
Run `mix ecto.gen.migration upgrade_rihanna_jobs` and make your migration look
like this:
defmodule MyApp.UpgradeRihannaJobs do
use Rihanna.Migration.Upgrade
end
Now you can run `mix ecto.migrate`.
(rihanna) lib/rihanna/migration.ex:267: Rihanna.Migration.raise_upgrade_required!/0
(rihanna) lib/rihanna/job_dispatcher.ex:31: Rihanna.JobDispatcher.handle_info/2
This error is returned when attempting to dispatch jobs with a custom
jobs_table_name
config:The check here: https://github.com/samphilipd/rihanna/blob/master/lib/rihanna/migration.ex#L234
is looking for the wrong primary key index. For example, with:
The generated primary key index name is
background_jobs_pkey
vs.rihanna_jobs_pkey
resulting in the error above.The text was updated successfully, but these errors were encountered: