MushroomObserver / mushroom-observer

A website for sharing observations of mushrooms.
https://mushroomobserver.org
MIT License
77 stars 26 forks source link

Try running current `process_image` bash script as `SolidQueue` job #2131

Open nimmolo opened 2 months ago

nimmolo commented 2 months ago

This PR simply moves the call to our process_image shell script from the Image model method process_image to a job, so it is run asynchronously as a background job when someone's uploading an image and ImageMagick is creating the sizes and uploading them to the image server.

[!IMPORTANT] This is now available to be tested in a production environment on test.mushroomobserver.org, by creating obs there and checking that the images are created and uploaded to the image server.

Roadmap of PRs for making image scripts background jobs and rewriting them in ruby:

coveralls commented 2 months ago

Coverage Status

coverage: 94.332% (-0.1%) from 94.434% when pulling 8d27d442b7b66b189b1aa67b19f789d68d2f0239 on nimmo-image-scripts-to-job into 15ec8fbe2dfcf033f31498fc13a8a677393ed706 on main.