fractaledmind / euruko-2024

Workshop on SQLite on Rails 7.2 apps
16 stars 3 forks source link

Periodic jobs is now outdated #2

Open brkn opened 2 months ago

brkn commented 2 months ago

See: https://github.com/rails/solid_queue/pull/338

From my understanding it should change from this at workshop/07-adding-solid-queue.md

Right now

Mentions

We can do this by defining a recurring task in the config/solid_queue.yml file

Then

default: &default
  dispatchers:
    - polling_interval: 1
      batch_size: 500
      recurring_tasks:
        periodic_litestream_backup_verfication_job:
          class: Litestream::VerificationJob
          args: []
          schedule: every day at 1am EST

Should be changed as

Mentions

We can do this by defining a recurring task in the config/schedule.yml file

Then

periodic_litestream_backup_verfication_job:
  class: Litestream::VerificationJob
  args: []
  schedule: every day at 1am EST
fractaledmind commented 2 months ago

Yep! Looks like they merged that after I wrote everything and after I did my run through a few a days ago. Great catch, thanks. Will fix.