Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Dynamic Refresh Interval Control #1447

Open
doctorfree opened this issue Dec 28, 2022 · 1 comment
Open

Module Dynamic Refresh Interval Control #1447

doctorfree opened this issue Dec 28, 2022 · 1 comment
Labels
💥 feature "Good luck, you're gonna need it." wontfix

Comments

@doctorfree
Copy link
Contributor

What should it do?

Module control of the widget refresh interval after startup.

Currently the refresh interval for a widget is set at startup in app/scheduler.go. Modules can set their refresh interval in the config.yml entry for the module but once initialized and set in schedule.go the module can no longer alter the refresh interval.

This issue came up in a discussion. One use case is a module with multiple modes, one that does not require frequent refresh and another that does require frequent refresh. Switching between these two modes, for example with a key press, it would be desirable to also modify the refresh interval accordingly. In the discussion @senorprogrammer suggested that a module could support:

  • module.PauseRefresh()
  • module.ResumeRefresh()
  • module.GetRefreshInterval()
  • module.SetRefreshInterval(interval)
  • module.RestoreRefreshInterval()

This feature request issue is requesting support for these module level refresh interval control methods.

@Seanstoppable Seanstoppable added the 💥 feature "Good luck, you're gonna need it." label Dec 30, 2022
@stale
Copy link

stale bot commented Jun 29, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 feature "Good luck, you're gonna need it." wontfix
Development

No branches or pull requests

2 participants