Commit e402dd8f authored by Robin Tissot's avatar Robin Tissot
Browse files

Merge branch 'develop'

parents dc68c498 3d8ff721
......@@ -570,9 +570,12 @@ class DocumentPart(OrderedModel):
tasks_order = ['convert', 'binarize', 'segment', 'transcribe']
if task_name == 'convert' or self.workflow_state < self.WORKFLOW_STATE_CONVERTED:
sig = convert.si(self.pk)
sig.link(lossless_compression.si(self.pk))
if getattr(settings, 'THUMBNAIL_ENABLE', True):
sig.link(generate_part_thumbnails.si(self.pk))
sig.link(chain(lossless_compression.si(self.pk),
generate_part_thumbnails.si(self.pk)))
else:
sig.link(lossless_compression.si(self.pk))
tasks.append(sig)
if (task_name == 'binarize'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment