Skip to content

Commit de748bf

Browse files
remove unnecessary decorator for rq analytics (#1317)
Address #1308 (comment) Signed-off-by: Alex <[email protected]>
1 parent cea1f04 commit de748bf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/aap_eda/tasks/analytics.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import logging
1616

17-
import django_rq
1817
from ansible_base.lib.utils.db import advisory_lock
1918

2019
from aap_eda.analytics import collector, utils
@@ -29,10 +28,6 @@
2928
ANALYTICS_JOB_ID = "job_gather_analytics"
3029
ANALYTICS_TASKS_QUEUE = "default"
3130

32-
# Wrap the django_rq job decorator so its processing is within our retry
33-
# code.
34-
job = tasking.redis_connect_retry()(django_rq.job)
35-
3631

3732
def schedule_gather_analytics(
3833
queue_name: str = ANALYTICS_TASKS_QUEUE, cancel: bool = False
@@ -74,7 +69,6 @@ def reschedule_gather_analytics(
7469
return reschedule_gather_analytics_rq(queue_name)
7570

7671

77-
@job(ANALYTICS_TASKS_QUEUE)
7872
def reschedule_gather_analytics_rq(
7973
queue_name: str = ANALYTICS_TASKS_QUEUE,
8074
) -> None:

0 commit comments

Comments
 (0)