right syntax for countdown to actually work (bug 653475) -a (bug #653475)

This commit is contained in:
Andy McKay 2011-05-02 13:19:19 -07:00
Родитель b00ed66cda
Коммит 5b1e1c6aca
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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.