Skip to content

Instantly share code, notes, and snippets.

@SirEdvin
Created June 18, 2018 19:17
Show Gist options
  • Save SirEdvin/d4feaa05ecc07595bfcffbbab7e224f5 to your computer and use it in GitHub Desktop.
Save SirEdvin/d4feaa05ecc07595bfcffbbab7e224f5 to your computer and use it in GitHub Desktop.
from celery import shared_task
@shared_task(bind=True)
def cute_task(self, filters=None):
if filters is None:
filters = {}
for x in range(0, 10):
print(filters)
filters[str(uuid.uuid4())] = str(uuid.uuid4())
raise self.retry()
@SirEdvin
Copy link
Author

And call cute_task.delay({})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment