mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Fix bulk name fetching job queue
This commit is contained in:
parent
cf50541be1
commit
58a7972976
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Places::BulkNameFetchingJob < ApplicationJob
|
||||
queue_as :default
|
||||
queue_as :places
|
||||
|
||||
def perform
|
||||
Place.where(name: Place::DEFAULT_NAME).find_each do |place|
|
||||
|
|
|
|||
|
|
@ -37,5 +37,5 @@ tracks_bulk_creating_job:
|
|||
|
||||
place_name_fetching_job:
|
||||
cron: "30 0 * * *" # every day at 00:30
|
||||
class: "Places::NameFetchingJob"
|
||||
class: "Places::BulkNameFetchingJob"
|
||||
queue: places
|
||||
|
|
|
|||
Loading…
Reference in a new issue