Define your async method. · Use asgiref 's sync.async_to_sync module to wrap the async method and run it synchronously inside a celery task: # tasks.py import ...
確定! 回上一頁