Skip to content
Snippets Groups Projects
Commit 9451434a authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Temporarily disable Sidekiq ThumbnailWorker

parent 9d8d4754
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ namespace :thumbnail do
task :generate => :environment do
include RepositoriesProxy
include Thumbnail::Generate
# Quantity of items fetched on each iteration
limit = 500
......@@ -27,9 +28,11 @@ namespace :thumbnail do
items.each do |item|
if item.thumbnail.nil?
ThumbnailGeneratorWorker.perform_async(item.id)
# ThumbnailGeneratorWorker.perform_async(item.id)
generate_thumbnail(item.id)
elsif item.thumbnail.empty?
ThumbnailGeneratorWorker.perform_async(item.id)
# ThumbnailGeneratorWorker.perform_async(item.id)
generate_thumbnail(item.id)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment