From 5b1e1c6aca69b67d38e5c3da82a7bd6b1046bd43 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 2 May 2011 13:19:19 -0700 Subject: [PATCH] right syntax for countdown to actually work (bug 653475) -a (bug #653475) --- apps/amo/decorators.py | 5 +++-- settings.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/amo/decorators.py b/apps/amo/decorators.py index 4a8e88e499..84b6dcf1a2 100644 --- a/apps/amo/decorators.py +++ b/apps/amo/decorators.py @@ -101,7 +101,8 @@ def set_modified_on(f): for obj in objs: task_log.info('Delaying setting modified on object: %s, %s' % (obj.__class__.__name__, obj.pk)) - set_modified_on_object.delay(obj, - countdown=settings.MODIFIED_DELAY) + set_modified_on_object.apply_async( + args=[obj], kwargs=None, + countdown=settings.MODIFIED_DELAY) return result return wrapper diff --git a/settings.py b/settings.py index dba3ee23de..f5ee0191e2 100644 --- a/settings.py +++ b/settings.py @@ -897,7 +897,7 @@ RESPONSYS_ID = '' FILE_VIEWER_SIZE_LIMIT = 1048576 # How long to delay modify updates to cope with alleged NFS slowness. -MODIFIED_DELAY = 120 +MODIFIED_DELAY = 60 # This is a list of dictionaries that we should generate compat info for. # app: should match amo.FIREFOX.id.