right syntax for countdown to actually work (bug 653475) -a (bug #653475)
This commit is contained in:
Родитель
b00ed66cda
Коммит
5b1e1c6aca
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче