question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to control the timeout of button-longrunning

See original GitHub issue

Is your proposal related to a problem?

The button-longrunning class currently provides a UI indication via the submit button animation that a long running form submission is being processed, but it doesn’t take into account the server response, so it times out and shows complete even though the task is not.

Describe the solution you’d like

The button-longrunning class should take into account the server’s response, if possible. For example I have my Nginx timeout set to 300 seconds, the max body size set to 300mb, and the gunicorn worker timeout set to 300 seconds to allow for > 100mb audio file uploads for podcast episodes, but after seemingly 30 seconds, the button-longrunning animation expires, leaving the user with an erroneous form display.

The task completes if they ignore the UI, but that is obviously not optimal.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lb-commented, Jun 8, 2022

RFC up for adoption of Stimulus JS with a potential path forward on this issue through a data-* attributes driven API on the button element, irrespective of where used (even when added to a modal dynamically) it would attach the JS behaviour as desired.

https://github.com/wagtail/rfcs/pull/78

Feedback welcome on that RFC’s PR.

1reaction
lb-commented, Mar 30, 2022

Having a fixed timeout is important, remember it is not simple to track if a Promise never resolves without some central shared handling using something like Promise.race.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race

Hence it is difficult to know if the network has failed/never resolved/ timed out somewhere and then if the user can safely click the button again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable/disable the Session Inactivity Timeout
Start a new Take Control Session · On the top right corner of the Viewer click on the vertical ellipsis icon · Hover...
Read more >
Setting the session timeout - IBM
The session timeout determines the time a user can remain idle before the session is terminated and the user must log in again....
Read more >
Blewett Clymer - Springer Link
be able to take a lot of control over the CLR execution, such as memory allocation, controlling when and if garbage collection (GC)...
Read more >
Control-M Enterprise Manager Automation API. What is the ...
18 Fix Pack 2 and higher: Following enhancement request was implemented: QM002426941: Ability to configure the Automation API session timeout. Please, follow ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found