Created
June 18, 2018 19:17
-
-
Save SirEdvin/d4feaa05ecc07595bfcffbbab7e224f5 to your computer and use it in GitHub Desktop.
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
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And call
cute_task.delay({})