Skip to content

Commit 86d0dba

Browse files
committed
fix: wrong use of celery uuid function
1 parent fe5337d commit 86d0dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ami/jobs/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def enqueue(self):
561561
Add the job to the queue so that it will run in the background.
562562
"""
563563
assert self.pk is not None, "Job must be saved before it can be enqueued"
564-
task_id = uuid.uuid4().hex
564+
task_id = uuid()
565565

566566
def send_task():
567567
run_job.apply_async(kwargs={"job_id": self.pk}, task_id=task_id)

0 commit comments

Comments
 (0)