# HG changeset patch # User Mads Kiilerich # Date 2020-11-07 01:52:19 # Node ID f78ccff15f43ba1c05af179a355c1e2f96e6dca0 # Parent d2d787d881db45693c25760ca02886334cde8c91 celery: use kallithea.CELERY_APP.AsyncResult instead of celery.result import This is more spot-on and more correct. diff --git a/kallithea/controllers/admin/repos.py b/kallithea/controllers/admin/repos.py --- a/kallithea/controllers/admin/repos.py +++ b/kallithea/controllers/admin/repos.py @@ -28,7 +28,6 @@ Original author and date, and relevant c import logging import traceback -import celery.result import formencode from formencode import htmlfill from tg import request @@ -172,7 +171,7 @@ class ReposController(BaseRepoController if task_id and task_id not in ['None']: if kallithea.CELERY_APP: - task_result = celery.result.AsyncResult(task_id, app=kallithea.CELERY_APP) + task_result = kallithea.CELERY_APP.AsyncResult(task_id) if task_result.failed(): raise HTTPInternalServerError(task_result.traceback)