Background task should be completed even after the client closes the connection. #1595
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved this by changing |
Beta Was this translation helpful? Give feedback.
I solved this by changing
--application-close-timeout
to 60 seconds so that the ASGI server will not kill the process after socket is closed and wait for 60 seconds for the pending task to complete.Daphne my_app.asgi:application --application-close-timeout 60