Created
October 8, 2016 03:57
-
-
Save tapanpandita/68bc380b5a22b04766475d0caaae6db9 to your computer and use it in GitHub Desktop.
Transaction aware task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@shared_task(base=TransactionAwareTask, 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