You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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).
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:
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?
The text was updated successfully, but these errors were encountered: