Sha256: a7a9cc5da6567ab4cfe432c1dbed33ea5c8e00bb4b85c9659f66433496386b6e
Contents?: true
Size: 527 Bytes
Versions: 10
Compression:
Stored size: 527 Bytes
Contents
module Marty module BackgroundJob module FetchMissingInScheduleCronJobs def self.call in_dashboard = Marty::BackgroundJob::Schedule.pluck(:job_class) names_conditions = in_dashboard.map do |job_class_name| "%job_class: #{job_class_name}\n%" end Delayed::Job. where.not(cron: nil). where.not(cron: ''). where("handler ILIKE '%job_class:%'"). where.not('handler ILIKE ANY ( array[?] )', names_conditions) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems