I get the same results even if I use post_save signals. I was using signals 
before.

On Sunday, October 11, 2015 at 7:16:46 PM UTC+5:45, Rakan Alhneiti wrote:
>
> It looks like if not self.id is not evaluating to True which is why the 
> task is being executing multiple times. Looking at your code, it looks like 
> using the post_save signal by django is better because at that point you 
> have access to the ID which you can pass to the celery task rather than 
> passing the key.
>
> https://docs.djangoproject.com/en/1.8/ref/signals/#post-save
>
> If you also look at the documentation, you can figure out if it's a new 
> record or not using the "created" flag which gets passed as a param to your 
> signal handler.
>
> On Sunday, October 11, 2015 at 5:33:06 AM UTC+2, Shapath Neupane wrote:
>>
>> I'm using celery as a queue to fetch extra details on the model I save. 
>> So when I user inputs a link, it goes to Embedly and fetches thumbnail, 
>> title and extra stuff.
>>
>> However when I do that Celery goes into an infinite loop 
>>
>>
>> TASKS @ https://dpaste.de/DBbw
>>
>> CELERY LOGS @ https://dpaste.de/B1dr
>>
>>
>>
>> Celery is going into this infinite loop when I'm using Redis, I also 
>> tried RabitMQ but the same problem.
>>
>>
>> Thanks,
>> Shap.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e7d043f1-d023-4266-98a4-00030fc0a4bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to