Skip to content

Commit

Permalink
Decrease default refresh interval and update example config
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed May 28, 2024
1 parent f2701c5 commit e157850
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ All config options can be overruled by environment variables. Prefix with
options. It is also possible to override logging by setting "HOWITZ_LOGGING" to
a string of a python dict but we do not recommend it, use a config file instead.

Refresh interval for events table can be changed by adding for example ``refresh_interval = 30`` to
Refresh interval for events table can be changed by adding for example ``refresh_interval = 10`` to
the ``[howitz]``-section or setting the environment variable ``HOWITZ_REFRESH_INTERVAL`` to a new value.
Refresh interval values represented seconds and must be integers. The default value is ``60`` seconds.
Refresh interval values represented seconds and must be integers. The default value is ``5`` seconds.

Debugging can be turned on either by adding ``DEBUG = true`` to the
``[flask]``-section or setting the environment variable ``HOWITZ_DEBUG`` to ``1``.
Expand Down
2 changes: 1 addition & 1 deletion dev-howitz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DEBUG = true
[howitz]
storage = "./howitz.sqlite3"
devmode = true
refresh_interval = 30
refresh_interval = 10
timezone='LOCAL'

[zino.connections.default]
Expand Down
4 changes: 2 additions & 2 deletions src/howitz/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class DevStorageConfig(StorageConfig):

class HowitzConfig(ServerConfig, StorageConfig):
devmode: bool = Literal[False]
refresh_interval: int = 60
refresh_interval: int = 5
timezone: str = DEFAULT_TIMEZONE


class DevHowitzConfig(DevServerConfig, DevStorageConfig):
devmode: bool = Literal[True]
refresh_interval: int = 30
refresh_interval: int = 5
timezone: str = DEFAULT_TIMEZONE

0 comments on commit e157850

Please sign in to comment.