From 329df0944bc5316a34602574de94da532d2b51b7 Mon Sep 17 00:00:00 2001 From: Jeff Balogh Date: Fri, 3 Sep 2010 07:52:25 -0700 Subject: [PATCH] gd slave lag --- apps/reviews/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/reviews/models.py b/apps/reviews/models.py index 5c5f6a1de2..3a9b4a4d46 100644 --- a/apps/reviews/models.py +++ b/apps/reviews/models.py @@ -104,7 +104,8 @@ class Review(amo.models.ModelBase): def post_save(sender, instance, created, **kwargs): if created: Review.post_delete(sender, instance) - check_spam.delay(instance.id) + # Avoid slave lag with the delay. + check_spam.apply_async(args=[instance.id], countdown=60) @staticmethod def post_delete(sender, instance, **kwargs):