Skip to content

Commit

Permalink
Modify example debug_task to ignore result
Browse files Browse the repository at this point in the history
To allow:
```
debug_task.delay().get()
```
  • Loading branch information
wieczorek1990 authored and auvipy committed Jun 23, 2022
1 parent 871bb21 commit 4627b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/django/proj/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
app.autodiscover_tasks()


@app.task(bind=True)
@app.task(bind=True, ignore_result=True)
def debug_task(self):
print(f'Request: {self.request!r}')

0 comments on commit 4627b93

Please sign in to comment.