there might be thumbnail generation jobs, we will need them to get the image sizes
authorGuillaume Cottenceau <gc@mnc.ch>
Mon, 24 May 2021 13:13:04 +0000 (15:13 +0200)
committerGuillaume Cottenceau <gc@mnc.ch>
Mon, 24 May 2021 13:13:04 +0000 (15:13 +0200)
bin/booh-backend

index 12de9d81c206b89355dc6a1e3f9814b28c0c8c44..79e728ad4c8fe6da20094e6a6e307b59b517e1b6 100644 (file)
@@ -1196,6 +1196,8 @@ def walk_source_dir
                 xmldir.elements.each('image') { |elem|
                     optfilename[elem.attributes['filename']] = elem
                 }
+                #- there might be thumbnail generation jobs, we will need them to get the image sizes below
+                waitjobs
                 for file in entries
                     type = images.include?(file) ? 'image' : videos.include?(file) ? 'video' : nil
                     if type