watchfiles icon indicating copy to clipboard operation
watchfiles copied to clipboard

Signal timeout does not propagate

Open yli02 opened this issue 4 months ago • 2 comments

Description

The values of sigint_timeout and sigkill_timeout of function https://github.com/samuelcolvin/watchfiles/blob/9f19a18da5323d0e63a2ee16c47ed6c819f89be5/watchfiles/run.py#L32 don't propagate to line https://github.com/samuelcolvin/watchfiles/blob/9f19a18da5323d0e63a2ee16c47ed6c819f89be5/watchfiles/run.py#L156

Example Code


Watchfiles Output

[15:25:44] watchfiles v0.21.0 👀 path="/mnt/c/Users/yli2/workspace/******" target="echo reloaded" (command) filter=DefaultFilter... [15:25:44] running "echo reloaded" as command [15:25:44] registering handler for SIGTERM on watchfiles process 13943 reloaded watcher: PollWatcher { watches: Mutex { data: , poisoned: false, .. }, data_builder: Mutex { data: , poisoned: false, .. }, want_to_stop: false, delay: 300ms } [15:26:00] rust notify timeout, continuing [15:26:05] rust notify timeout, continuing

Operating System & Architecture

Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35

Environment

docker, WSL

Python & Watchfiles Version

python: 3.8.18 (default, Aug 25 2023, 13:20:30) [GCC 11.4.0], watchfiles: 0.21.0

Rust & Cargo Version

No response

yli02 avatar Feb 05 '24 14:02 yli02