jobs: update jobs dashboard to work with GoodJob.
Update the jobs dashboard at /delayed_jobs to work with GoodJob instead of DelayedJob.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
FactoryBot.define do
|
||||
factory :delayed_job, class: Delayed::Job do
|
||||
handler { "" }
|
||||
end
|
||||
end
|
||||
15
test/factories/good_job.rb
Normal file
15
test/factories/good_job.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
FactoryBot.define do
|
||||
factory :good_job, class: GoodJob::ActiveJobJob do
|
||||
transient do
|
||||
job { VacuumDatabaseJob.new }
|
||||
end
|
||||
|
||||
id { SecureRandom.uuid }
|
||||
active_job_id { job.job_id }
|
||||
queue_name { job.queue_name }
|
||||
priority { job.priority }
|
||||
serialized_params do
|
||||
{ job_class: job.class.name, **job.as_json }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user