Skip to content

[Bug]: Apps reload multiple times on save when --reload is used #1995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wch opened this issue May 11, 2025 · 0 comments
Open

[Bug]: Apps reload multiple times on save when --reload is used #1995

wch opened this issue May 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wch
Copy link
Collaborator

wch commented May 11, 2025

Component

Other

Severity

P3 - Low (minor inconvenience)

Shiny Version

1.4.0

Python Version

3.12

Minimal Reproducible Example

...

Behavior

When I'm working on an app.py file and running it with shiny --reload, saving the file causes shiny to restart two times.

Here's some example output from a single save:

WARNING:  WatchFiles detected changes in 'examples/event/app.py'. Reloading...
INFO:     Shutting down
INFO:     connection closed
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [39459]
INFO:     Started server process [40731]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     127.0.0.1:58860 - "GET /?_positronRender%3D5 HTTP/1.1" 200 OK
INFO:     ('127.0.0.1', 58863) - "WebSocket /websocket/" [accepted]
INFO:     connection open
WARNING:  WatchFiles detected changes in 'examples/event/app.py'. Reloading...
INFO:     Shutting down
INFO:     connection closed
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [40731]
INFO:     Started server process [40733]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     127.0.0.1:58870 - "GET /?_positronRender%3D5 HTTP/1.1" 200 OK
INFO:     ('127.0.0.1', 58873) - "WebSocket /websocket/" [accepted]
INFO:     connection open

Error Messages (if any)

Environment

Mac
@wch wch added the bug Something isn't working label May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant