From 3d4cc7b58f5ac1df5d3eac0f6e71ee73b9d00393 Mon Sep 17 00:00:00 2001 From: Kumar McMillan Date: Mon, 9 Jan 2012 15:11:30 -0600 Subject: [PATCH] Accept arbitrary keywords from celery like task_name= --- apps/stats/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/stats/tasks.py b/apps/stats/tasks.py index 93a61334e0..7614c3c2e3 100644 --- a/apps/stats/tasks.py +++ b/apps/stats/tasks.py @@ -189,7 +189,7 @@ def _get_metrics_jobs(date=None): @task -def index_update_counts(ids): +def index_update_counts(ids, **kw): es = elasticutils.get_es() qs = list(UpdateCount.objects.filter(id__in=ids)) if qs: @@ -206,7 +206,7 @@ def index_update_counts(ids): @task -def index_download_counts(ids): +def index_download_counts(ids, **kw): es = elasticutils.get_es() qs = DownloadCount.objects.filter(id__in=ids) if qs: