@celery_app.task(name='froide.foirequest.tasks.convert_attachment_task', time_limit=60)
def convert_attachment_task(instance_id):
    try:
        att = FoiAttachment.objects.get(pk=instance_id)
    except FoiAttachment.DoesNotExist:
        return
    if att.can_convert_to_pdf():
        return convert_attachment(att)
@celery_app.task(name='froide.foirequest.tasks.convert_attachment_task', time_limit=60)
def convert_attachment_task(instance_id):
    try:
        att = FoiAttachment.objects.get(pk=instance_id)
    except FoiAttachment.DoesNotExist:
        return
    if att.can_convert_to_pdf():
        return convert_attachment(att)