solid_queue icon indicating copy to clipboard operation
solid_queue copied to clipboard

SolidQueue::ProcessExitError:

Open rctneil opened this issue 1 year ago • 3 comments

Hi,

I needed to reprocess a lot of PhotoAlbum instances so I wrote a quick rake task that found ones that needed fixing and set a job running for them. Task below:

    desc "Check PhotoAlbums for photos with nil positions and enqueue job"
    task check_album_photo_positions: :environment do
      PhotoAlbum.find_each do |album|
        if album.photos.where(position: nil).exists?
          UpdatePhotosForAlbumJob.perform_later(album)
          puts "Updating PhotoAlbum ID: #{album.id}"
        end
    end

I expected them all to get added to the queue and run sequentially, 5 of them run, the rest all have gone to Failed with an error similar to: [SolidQueue::ProcessExitError: Process pid=1074445 exited with status 1](https://<domain>.co.uk/jobs/applications/<app>/jobs/d99e889a-2843-40da-a5a7-130801b49d01?server_id=solid_queue#error)

Any ideas why?

rctneil avatar Sep 01 '24 19:09 rctneil

That means the worker with pid=1074445 was killed or exited unceremoniously without finishing the job that you see as failed. You'll need to check logs for that worker to see what happened. It might have been something external killing it (like if it got killed because of using too much memory, for example).

rosa avatar Sep 01 '24 20:09 rosa

Ok, How do I check logs? I have no configuration changes from default and am running with the Puma plugin.

rctneil avatar Sep 01 '24 20:09 rctneil

That will depend on your setup and how and where you're running the app, it's not something that Solid Queue determines.

rosa avatar Sep 02 '24 06:09 rosa