-
Notifications
You must be signed in to change notification settings - Fork 4
Sidekiq
When new items or uploaded or existing items are updated, the jobs of (re)generating the thumbnail images, attaching attachments to the work, and adding works to parent collections, are queued for asynchronous processing by sidekiq
.
sidekiq
should stay running, but it has happened that sidekiq
needs to be restarted.
You can check the status of sidekiq
by running
sudo service sidekiq status
Here's an example of the output when sidekiq
is running and is currently processing jobs:
● sidekiq.service - sidekiq
Loaded: loaded (/lib/systemd/system/sidekiq.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2022-02-23 14:04:01 EST; 9 months 24 days ago
Main PID: 23611 (ruby)
Tasks: 32 (limit: 4915)
CGroup: /system.slice/sidekiq.service
├─23611 sidekiq 6.4.1 scholarspace-hyrax [3 of 3 busy]
├─30464 identify /tmp/mini_magick20221219-23611-1mml18i.pdf
├─30465 gs -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBi
├─30513 sh -c /usr/local/bin/fits-1.5.0/fits.sh -i "/tmp/tmpcq2nqt8f/Rea_gwu_007
├─30514 java -classpath :/usr/local/bin/fits-1.5.0/lib/aes-31.3.jar:/usr/local/b
├─30538 identify /tmp/mini_magick20221219-23611-wm29s6.pdf
└─30539 gs -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBi
In this example, we see gs
(ghostscript) jobs that are generating thumbnails, and identify
jobs that are identifying the file type of new attachments.
If sidekiq
isn't running, you can start it with:
sudo service sidekiq start
sidekiq
also has an web-viewable administrative interface running on a certain port, which you can view if that port has been opened to the IP from which you're accessing it.