I have a view which sometimes, takes a long time to process resulting in a timeout.
I could handle this heavy processing in the background using background tasks in as celery. This for me however is not optimal because, I need to give feedback to the user, like imediately.
Whenever I get timeouts, bad things happen and I end up with a model objects in an inconsistent state, missing some vital variables. I could easily remedy this by using atomic transactions but I dont know how to see a 504 event from the view. If it helps, I running django behind nginx
Any help is appreciated.