solid_queue: ActiveStorage::AnalyzeJob jobs not running

Hey,

I’ve got some ActiveStorage::AnalyzeJob jobs not running (in development, haven’t checked other envs). They’re enqueued to the default queue (automatically by ActiveStorage).

Capture d’écran, le 2024-03-07 à 15 19 09

However, other ActiveJob jobs are also enqueued to the default queue but are processed as expected. Since other jobs going through the default queue are processed, ActiveStorage::AnalyzeJob should run as well, right?

Capture d’écran, le 2024-03-07 à 15 19 18

This is how I start jobs jobs: bundle exec rake solid_queue:start config file

default: &default
  workers:
    - queues: "critical"
      threads: 10
    - queues: "mailers"
      threads: 5
    - queues: "default"
      threads: 2
    - queues: ["low", "*"]
      threads: 1

development:
  <<: *default
  dispatchers:
    - polling_interval: 5 # default is 1
  workers:
    - polling_interval: 1 # default is 0.1

test:
  <<: *default

production:
  <<: *default

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I had this exact same issue come up with my AnalyzeJob which was working fine on my windows desktop machine using ubuntu wsl. On a mac intel laptop I started getting the issue where it went to the in progress jobs, but never completed.

I tracked it back in the logs to this error:

Screenshot 2024-03-24 at 7 24 33 PM

Then found this open issue on rails related to it. https://github.com/rails/rails/issues/38560

Locally in dev if I run this OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES bin/dev I no longer have the issue and eveything runs fine.

Almost a decade old problem now. Yes, it’s safe to set this ENV variable (export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES).

Reference: https://blog.phusion.nl/2017/10/13/why-ruby-app-servers-break-on-macos-high-sierra-and-what-can-be-done-about-it/