Skip to content

Commit

Permalink
Fix datastore file system watcher (#6794)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Jan 31, 2023
1 parent aa69f67 commit 893354d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ datastore {
watchFileSystem {
enabled = true
interval = 1 minute
initialDelay = 10 seconds
initialDelay = 5 seconds
}
reportUsedStorage.enabled = false
cache {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class DataSourceService @Inject()(
with LazyLogging
with FoxImplicits {

override protected val enabled: Boolean = config.Datastore.WatchFileSystem.enabled
protected lazy val tickerInterval: FiniteDuration = config.Datastore.WatchFileSystem.interval
override protected def enabled: Boolean = config.Datastore.WatchFileSystem.enabled
override protected def tickerInterval: FiniteDuration = config.Datastore.WatchFileSystem.interval

override protected val tickerInitialDelay: FiniteDuration = config.Datastore.WatchFileSystem.initialDelay
override protected def tickerInitialDelay: FiniteDuration = config.Datastore.WatchFileSystem.initialDelay

val dataBaseDir: Path = Paths.get(config.Datastore.baseFolder)

Expand Down
2 changes: 1 addition & 1 deletion webknossos-datastore/conf/standalone-datastore.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ datastore {
watchFileSystem {
enabled = true
interval = 1 minute
initialDelay = 10 seconds
initialDelay = 5 seconds
}
cache {
dataCube.maxEntries = 1000
Expand Down

0 comments on commit 893354d

Please sign in to comment.