You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-19828] Kill or rework auto refresh #14976
The auto_refresh query parameter (and associated hudson_auto_refresh cookie) not only wreaks havoc on forms or any other pages that forget to add norefresh=true, it can cause serious performance issues in large Jenkins installations if some team members naïvely turn on auto refresh on the dashboard or some other expensive page and then go home for the night. Options:
1. Delete this (mis)feature, adding back in more AJAXy behaviors to various pages upon request.
2. Allow a Jenkins administrator to disable it for a given installation.
3. Keep it, but make the Refresh time (Functions.configureAutoRefresh) increase exponentially after each automatic refresh, resetting to 10s only after an explicit page load (if these can be somehow distinguished).
The auto_refresh query parameter (and associated hudson_auto_refresh cookie) not only wreaks havoc on forms or any other pages that forget to add norefresh=true, it can cause serious performance issues in large Jenkins installations if some team members naïvely turn on auto refresh on the dashboard or some other expensive page and then go home for the night. Options:
1. Delete this (mis)feature, adding back in more AJAXy behaviors to various pages upon request.
2. Allow a Jenkins administrator to disable it for a given installation.
3. Keep it, but make the Refresh time (Functions.configureAutoRefresh) increase exponentially after each automatic refresh, resetting to 10s only after an explicit page load (if these can be somehow distinguished).
It's also possible to implement a ViewProperty::isAutomaticRefreshEnabled() to manage auto-refreshes in view layouts (JENKINS-21191 provides similar feature for custom views)
It's also possible to implement a ViewProperty::isAutomaticRefreshEnabled() to manage auto-refreshes in view layouts (JENKINS-21191 provides similar feature for custom views)
Jenkins devs are thinking about ways to update page contents post load, for example so that the list view will keep updating as stuff happens. WebSocket was discussed as an option, and then server-side events, which seems to be the current favorite.
Jenkins devs are thinking about ways to update page contents post load, for example so that the list view will keep updating as stuff happens. WebSocket was discussed as an option, and then server-side events, which seems to be the current favorite.
No compatibility guarantee
In general, these switches are often experimental in nature, and subject to change without notice. If you find some of those useful, please file a ticket to promote it to the official feature.
No compatibility guarantee
In general, these switches are often experimental in nature, and subject to change without notice. If you find some of those useful, please file a ticket to promote it to the official feature.
how can we turn off auto refresh ...as we do not have aut refresh enabled but our jenkins instace keeps refreshing every 20 seconds all pages in jenkins does the same.
version 1.624
how can we turn off auto refresh ...as we do not have aut refresh enabled but our jenkins instace keeps refreshing every 20 seconds all pages in jenkins does the same.
version 1.624
As a user, it's been years I always disable this. The few times I've used it, it's screwed a form I was filling in and so on.
So we should indeed either:
simply kill it in the main code,
or offer a simple way for people to simply disable it totally. Like Oleg says: if the UI has a value of 0 e.g., just do not display the field at all. We could probably even use it as a progressive strategy to kill it: do that, plus define the default to 0 for new installs? And in the meantime, make a poll about that on the users list to take the temperature?
As a user, it's been years I always disable this. The few times I've used it, it's screwed a form I was filling in and so on.
So we should indeed either:
simply kill it in the main code,
or offer a simple way for people to simply disable it totally. Like Oleg says: if the UI has a value of 0 e.g., just do not display the field at all. We could probably even use it as a progressive strategy to kill it: do that, plus define the default to 0 for new installs? And in the meantime, make a poll about that on the users list to take the temperature?
Why was this rejected from 2.0? This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.
A web page should never reload itself completely, it does it usually points to bad implementation. I guess the reason why this feature-bug exists is only because it is older than jQuery itself.
Why was this rejected from 2.0? This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.
A web page should never reload itself completely, it does it usually points to bad implementation. I guess the reason why this feature-bug exists is only because it is older than jQuery itself.
2.0 was a specific release 9 months ago and already was behind schedule with the changes that did make it in. This was simply out of scope for that. And given the traction Blue Ocean has I doubt we'll ever develop a replacement in core, the best I expect we'll do is kill it off. However…
This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.
It's opt in. And apparently, the people who do that don't want to go without it, despite all the brokenness.
Why was this rejected from 2.0?
2.0 was a specific release 9 months ago and already was behind schedule with the changes that did make it in. This was simply out of scope for that. And given the traction Blue Ocean has I doubt we'll ever develop a replacement in core, the best I expect we'll do is kill it off. However…
This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.
It's opt in. And apparently, the people who do that don't want to go without it, despite all the brokenness.
Activity
jenkins-infra-bot commentedon Oct 1, 2013
Remote link associated with this issue:
jenkins-infra-bot commentedon May 31, 2014
Raw content of original comment:
Auto-refresh is a piece of crap and needs to go.
It also breaks dialogs not designed to work with it (see linked issue), and cancels JS dialogs.
jenkins-infra-bot commentedon Jul 7, 2014
Raw content of original comment:
Config AutoRefresh Plugin may be extended to support approaches #2 and #3
https://wiki.jenkins-ci.org/display/JENKINS/Config+AutoRefresh+Plugin
BTW, seems the changes in the core would be required as well
It's also possible to implement a ViewProperty::isAutomaticRefreshEnabled() to manage auto-refreshes in view layouts (
JENKINS-21191provides similar feature for custom views)jenkins-infra-bot commentedon Jul 7, 2014
Raw content of original comment:
Isn't "1" why we're discussing Servlet 3 to get SSE?
jenkins-infra-bot commentedon Jul 7, 2014
Raw content of original comment:
> Isn't "1" why we're discussing Servlet 3 to get SSE?
I suppose this is a question to Jesse. Could you give a link to this discussion?
Additional approach:
4. Alter the default behavior in layout.jelly (disable autorefresh if norefresh is unspecified)
jenkins-infra-bot commentedon Jul 8, 2014
Raw content of original comment:
http://jenkins-ci.org/content/thinking-about-moving-servlet-30 says (with many inline links):
jenkins-infra-bot commentedon Jul 18, 2014
Raw content of original comment:
Yeah I would really advocate the first option.
jenkins-infra-bot commentedon Sep 2, 2014
Raw content of original comment:
Config AutoRefresh Plugin is on its own, as documented on https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties
jenkins-infra-bot commentedon Sep 15, 2014
Raw content of original comment:
Not sure which to resolve as Duplicate here. While the other is older, this one has more (bad) options.
jenkins-infra-bot commentedon Oct 12, 2015
Raw content of original comment:
how can we turn off auto refresh ...as we do not have aut refresh enabled but our jenkins instace keeps refreshing every 20 seconds all pages in jenkins does the same.
version 1.624
jenkins-infra-bot commentedon Oct 12, 2015
Raw content of original comment:
dam321 please take it to the Jenkins users’ list rather than adding noise to the JIRA issue.
jenkins-infra-bot commentedon Sep 19, 2016
Raw content of original comment:
As a user, it's been years I always disable this. The few times I've used it, it's screwed a form I was filling in and so on.
So we should indeed either:
jenkins-infra-bot commentedon Jan 27, 2017
Raw content of original comment:
Why was this rejected from 2.0? This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.
A web page should never reload itself completely, it does it usually points to bad implementation. I guess the reason why this feature-bug exists is only because it is older than jQuery itself.
jenkins-infra-bot commentedon Jan 27, 2017
Raw content of original comment:
2.0 was a specific release 9 months ago and already was behind schedule with the changes that did make it in. This was simply out of scope for that. And given the traction Blue Ocean has I doubt we'll ever develop a replacement in core, the best I expect we'll do is kill it off. However…
It's opt in. And apparently, the people who do that don't want to go without it, despite all the brokenness.
jenkins-infra-bot commentedon Nov 24, 2025
[Original
duplicatesfrom Jira: JENKINS-484]jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-10583]