GitHub user dosubot[bot] added a comment to the discussion: How to change default auto-refresh interval?
<!-- Greeting --> Hi @cifkao! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> Superset saves the dashboard auto-refresh interval in the dashboard's metadata under the field `refresh_frequency`. If this is set to 10, the dashboard will always auto-refresh every 10 seconds when opened. To restore the default "Don't refresh" behavior, set the auto-refresh interval to "Don't refresh" (which sets `refresh_frequency` to 0) and save the dashboard—this should persist the change and stop auto-refreshing by default on reloads ([source](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/actions/dashboardState.js)). If you are using Superset 5.0.0 and changes to the auto-refresh interval (or other dashboard metadata) do not persist, you may be hitting a known bug: if the dashboard has owners but no tags, metadata changes silently fail to save. The UI for tags is missing in 5.0.0, so the only reliable fix is to upgrade Superset to a newer version where this bug is fixed ([details and workaround discussion](https://github.com/apache/superset/issues/34688)). If you can't upgrade, you can try adding a tag to the dashboard via the API (object_type=3 for dashboards), but this workaround is not always effective in 5.0.0. If the problem persists even after adding a tag, upgrading is the only reliable solution. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/be0a0a4f-fb74-4953-9c5e-8002a4f9420d?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Superset%20saves%20the%20dashboard%20auto-refresh%20interval%20in%20the%20dashboard%27s%20metadata%20under%20the%20field%20%60refresh_frequency%60.%20If%20this%20is%20set%20to%2010%2C%20the%20dashboard%20will%20always%20auto-refresh%20every%2010%20seconds%20when%20opened.%20To%20restore%20the%20default%20%22Don%27t%20refresh%22%20behavior%2C%20set%20the%20auto-refresh%20interval%20to%20%22Don%27t%20refresh%22%20%28which%20sets%20%60refresh_frequency%60%20to%200%29%20and%20save%20the%20dashboard%E2%80%94this%20should%20persist%20the%20change%20and%20stop%20auto-refreshing%20by%20default%20on%20reloads%20%28%5Bsource%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/src/dashboard/actions/dashboardState.js%29%29.%0A%0AIf%20you%20are %20using%20Superset%205.0.0%20and%20changes%20to%20the%20auto-refresh%20interval%20%28or%20other%20dashboard%20metadata%29%20do%20not%20persist%2C%20you%20may%20be%20hitting%20a%20known%20bug%3A%20if%20the%20dashboard%20has%20owners%20but%20no%20tags%2C%20metadata%20changes%20silently%20fail%20to%20save.%20The%20UI%20for%20tags%20is%20missing%20in%205.0.0%2C%20so%20the%20only%20reliable%20fix%20is%20to%20upgrade%20Superset%20to%20a%20newer%20version%20where%20this%20bug%20is%20fixed%20%28%5Bdetails%20and%20workaround%20discussion%5D%28https%3A//github.com/apache/superset/issues/34688%29%29.%20%0A%0AIf%20you%20can%27t%20upgrade%2C%20you%20can%20try%20adding%20a%20tag%20to%20the%20dashboard%20via%20the%20API%20%28object_type%3D3%20for%20dashboards%29%2C%20but%20this%20workaround%20is%20not%20always%20effective%20in%205.0.0.%20If%20the%20problem%20persists%20even%20after%20adding%20a%20tag%2C%20upgrading%20is%20the%20only%20reliable%20solution.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36873) GitHub link: https://github.com/apache/superset/discussions/36873#discussioncomment-15377465 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
