rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

no implicit conversion of String into Hash #150

Closed morgoth closed 3 months ago

morgoth commented 3 months ago

When visiting /recurring_tasks UI, I'm getting an error:

mission_control-jobs (0.3.0) lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb:29:in `merge'
mission_control-jobs (0.3.0) lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb:29:in `each'
mission_control-jobs (0.3.0) lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb:29:in `reduce'
mission_control-jobs (0.3.0) lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb:29:in `recurring_tasks_from_dispatchers'
mission_control-jobs (0.3.0) lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb:7:in `recurring_tasks'
....

My recurring tasks config in config/solid_queue.yml:

default: &default
  dispatchers:
    - polling_interval: 1
      batch_size: 500
      recurring_tasks:
        solid_queue_cleaner_job:
          class: Cron::SolidQueueCleanerJob
          schedule: every day at 07:00 UTC
        expired_plans_cleaner_job:
          class: Cron::ExpiredPlansCleanerJob
          schedule: every day at 08:00 UTC
SolidQueue::Process.where(kind: "Dispatcher").last.metadata
=> {"polling_interval"=>1, "batch_size"=>500, "concurrency_maintenance_interval"=>600, "recurring_schedule"=>["solid_queue_cleaner_job", "expired_plans_cleaner_job"]}

solid_queue: 0.5.0 mission_control-jobs: 0.3.0

rosa commented 3 months ago

Oops, sorry @morgoth! I had pushed a fix for this one but hadn't published a new version. Could you update to version 0.3.1 and see if that fixes it?

searls commented 3 months ago

Just hit this and confirm 0.3.1 fixes it for me

morgoth commented 3 months ago

Yes, this is fixed. Thank you