def rebuild_index(reference): """Add a job to rebuild the reference index for reference to the SGE queue """ logger.info("Queuing TMAP reference index rebuild of %s" % reference.short_name) reference.status = "Rebuilding index" reference.save() build_tmap_index.delay(reference)
def rebuild_index(reference): """Add a job to rebuild the reference index for reference to the SGE queue """ logger.info("Queuing TMAP reference index rebuild of %s" % reference.short_name) reference.status = "indexing" result = build_tmap_index.delay(reference.id) reference.celery_task_id = result.task_id reference.save()