Set priorities on tasks

This commit is contained in:
Mouse Reeve
2021-09-07 16:33:43 -07:00
parent 7b2e4eebd2
commit de3f18655c
10 changed files with 24 additions and 24 deletions

View File

@ -61,7 +61,7 @@ class Importer:
job.save()
@app.task
@app.task(priority="low_priority")
def import_data(source, job_id):
"""does the actual lookup work in a celery task"""
job = ImportJob.objects.get(id=job_id)