mirror of
https://codeberg.org/Reuh/feather.git
synced 2025-10-27 10:09:32 +00:00
fix: increase watchfile debounce
This commit is contained in:
parent
72681be275
commit
95acd6d566
1 changed files with 6 additions and 2 deletions
|
|
@ -214,7 +214,11 @@ class FeatherApp:
|
||||||
return Path(path).suffix == ".html"
|
return Path(path).suffix == ".html"
|
||||||
|
|
||||||
async for changes in awatch(
|
async for changes in awatch(
|
||||||
self.config.html_root, watch_filter=filter_html, step=250, recursive=True
|
self.config.html_root,
|
||||||
|
watch_filter=filter_html,
|
||||||
|
step=250,
|
||||||
|
debounce=3600000, # so feather regenerate and other don't trigger a bunch of events while running
|
||||||
|
recursive=True,
|
||||||
):
|
):
|
||||||
sync_up_event.set()
|
sync_up_event.set()
|
||||||
sync_down_event.set()
|
sync_down_event.set()
|
||||||
|
|
@ -223,7 +227,7 @@ class FeatherApp:
|
||||||
"""Start the synchronization daemon"""
|
"""Start the synchronization daemon"""
|
||||||
config = self.config
|
config = self.config
|
||||||
if config.daemon_watch_files:
|
if config.daemon_watch_files:
|
||||||
print(
|
print(
|
||||||
f"Started in daemon mode; changes will be downloaded from the server every {config.daemon_sync_down_every_when_used} to {config.daemon_sync_down_every} seconds and uploaded every {config.daemon_sync_up_every_when_used} to {config.daemon_sync_up_every} seconds"
|
f"Started in daemon mode; changes will be downloaded from the server every {config.daemon_sync_down_every_when_used} to {config.daemon_sync_down_every} seconds and uploaded every {config.daemon_sync_up_every_when_used} to {config.daemon_sync_up_every} seconds"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue