Jobs scheduled for later execution will run shortly after their scheduled date, but there is no guarantee they will run at exactly their due date as this will depend on your configured poll interval and what other jobs are being processed.
Upgrading
Scheduled jobs requires a database upgrade to add due_at column to the Rihanna jobs table.
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
Schedule jobs to run at a
DateTime
or in a number of milliseconds.Schedule at a
DateTime
:Schedule in one hour:
Jobs scheduled for later execution will run shortly after their scheduled date, but there is no guarantee they will run at exactly their due date as this will depend on your configured poll interval and what other jobs are being processed.
Upgrading
Scheduled jobs requires a database upgrade to add
due_at
column to the Rihanna jobs table.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:Now you can run
mix ecto.migrate
.