Comments (3)
Believe it or not, I have actually never tried to use the autoReload
option. I will try to dig into this. Sorry it's taken so long even to respond.
from webhooks.
No problem; take your time; it is kind enough you share with everyone to make use of...
from webhooks.
I tried to reproduce the issue, and I don't even get the log entry from cherrypy that it's restarting the engine. I am testing with example.py
that's included in this repository. I added autoReload=True
to line 80:
webhooks = webhook_listener.Listener(port=port, handlers={"POST": parse_request}, autoReload=True)
Then ran the script with the -v argument and sent a POST request. I saw the request in the log.
I then made a change to example.py
(added a log entry at line 74: logger.debug("test")
). There was no log entry written about the cherrypy engine restarting or exiting. I sent another POST request, which failed with a "connection refused" error, presumably because, although I didn't get the log entries, the cherrypy engine exited like you are seeing.
The only code related to cherrypy auto-reload is to first accept the keyword argument when creating the Listener instance on line 23:
self.autoReload = kwargs.get("autoReload", False)
and then to pass that value in to the cherrypy engine on line 43:
"engine.autoreload.on": self.autoReload,
I don't think there's much I can do to fix this behavior (I am not an expert with the cherrypy engine), but if anyone else would like to give it a shot, feel free to submit a pull request. Also note that autoReload should only be used during testing, so I do not consider this to be a critical feature.
from webhooks.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webhooks.