#6388 (ActionHandler silently gives up when action takes more than timeout)
31 · by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
Example: print a school.Group on Prima prodution site. This takes about 2 minutes. The wheel starts spinning and never ends. User has to hit Ctrl+R manually.
Instead of never ending, there should be a warning "I gave up after x Seconds. Maybe the server is too busy. Try again later."
Children
Kommentaarid
- 11 kuud, 3 nädalat ago by Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) : ActionHandler now show a meaningful toast on 504 Gateway timeout.
- 11 kuud, 4 nädalat ago by Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) : For asgi configuration setting `proxy_read_timeout` to a higher value fixes the issue.
- 11 kuud, 4 nädalat ago by Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) : For uwsgi, setting the uwsgi_read_timeout attribute fixes the problem. Not sure yet how to fix it on asgi configuration. I should have started with asgi instead of wsgi.
- 11 kuud, 4 nädalat ago by Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) : I just set up a noi site on nginx and uwsgi on my local machine. I will try to reproduce it with nginx.
- 1 aasta ago by Luc Saffre in reply to Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) : Interesting. This was with runserver (not nginx) i assume. So there is maybe yet another nginx setting responsible for this. We could try to reproduce it on Jane.
- 1 aasta ago by Sharif Mehedi about #6388 (ActionHandler silently gives up when action takes more than timeout) (1 reply) : I can't really reproduce this. I tried with time.sleep(600) (which is 10 minutes), the fetch still waits until the backend responds. Ideally, fetch should wait indefinitely until the server returns with a message.
- 1 aasta ago by Luc Saffre about #6388 (ActionHandler silently gives up when action takes more than timeout) : For reproducing, maybe add a temporary sleep to MultiCachedPrintable.build_target()
- 1 aasta ago by Luc Saffre about #6388 (ActionHandler silently gives up when action takes more than timeout) : Maybe by saying this.context.dataContext.root.controller = new this.ex.AbortController({signal:AbortSignal.timeout(300000)});
- 1 aasta ago by Luc Saffre about #6388 (ActionHandler silently gives up when action takes more than timeout) : Example: print a school.Group on Prima prodution site. This takes about 2 minutes. The wheel starts spinning and never ends. User has to hit Ctrl+R manually.
- 1 aasta ago by Luc Saffre about #6388 (ActionHandler silently gives up when action takes more than timeout) : Created new Ticket #6388 (ActionHandler silently gives up when action takes more than timeout).