Skip to content

Instantly share code, notes, and snippets.

@tapanpandita
Created October 8, 2016 03:58
Show Gist options
  • Save tapanpandita/8d0226f8adeae80aa09188b26612c019 to your computer and use it in GitHub Desktop.
Save tapanpandita/8d0226f8adeae80aa09188b26612c019 to your computer and use it in GitHub Desktop.
Old jobs code
@shared_task(bind=True, max_retries=settings.EVENT_MAX_RETRIES)
def push_event(self, event_id):
event = Event.objects.get(id=event_id)
# code to push webhook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment