What is the meaning of <code>bind=True</code> in below <strong>celery</strong> code? When to use it and when not?
What is the meaning of
bind=True in below celery code? When to use it and when not?
@app.task(bind=True) def send_twitter_status(self, oauth, tweet): try: twitter = Twitter(oauth) twitter.update_status(tweet) except (Twitter.FailWhaleError, Twitter.LoginError) as exc: raise self.retry(exc=exc)
🔥Intellipaat Django course: https://intellipaat.com/python-django-training/ 👉This Python Django tutorial will help you learn what is django web development &...
This article is a definitive guide for starters who want to develop projects with RESTful APIs using Python, Django and Django Rest Framework.