Skip to content

Commit 8738727

Browse files
authored
Add WatchFilesReload pause method (#1930)
1 parent 7caaf20 commit 8738727

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uvicorn/supervisors/watchfilesreload.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def __init__(
8282
)
8383

8484
def should_restart(self) -> Optional[List[Path]]:
85+
self.pause()
86+
8587
changes = next(self.watcher)
8688
if changes:
8789
unique_paths = {Path(c[1]) for c in changes}

0 commit comments

Comments
 (0)