Skip to content

Commit abe7acf

Browse files
Create AsyncResult with Celery app
1 parent 17ace38 commit abe7acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_celery_boost/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def celery_queue_info(cls) -> "dict[str, int]":
223223
def async_result(self) -> "AsyncResult|None":
224224
"""Return the AsyncResult object of the current instance."""
225225
if self.curr_async_result_id:
226-
return AsyncResult(self.curr_async_result_id)
226+
return self.celery_app.AsyncResult(self.curr_async_result_id)
227227
return None
228228

229229
@property

0 commit comments

Comments
 (0)