Browse Source

Modify example debug_task to ignore result

To allow:
```
debug_task.delay().get()
```
pull/7596/head
Łukasz Wieczorek 2 months ago committed by Asif Saif Uddin
parent
commit
4627b93648
  1. 2
      examples/django/proj/celery.py

2
examples/django/proj/celery.py

@ -17,6 +17,6 @@ app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
@app.task(bind=True)
@app.task(bind=True, ignore_result=True)
def debug_task(self):
print(f'Request: {self.request!r}')

Loading…
Cancel
Save