You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the mapproxy-util serve-develop {conf-file}.yaml command, the service is restarted one or more times, so the configuration file is read at least twice. Therefore the service startup time is increased.
Expected Behavior
The mapproxy service should be started only once.
Actual Behavior
When the service starts, the following message appears: mapproxy.config - INFO - reading: path/to/conf-file.yaml
When it finishes it shows that the service is running on localhost:8080 but when it starts the message "Restarting with reloader" appears, and again reads the configuration file:
[2024-04-01 12:11:56,650] mapproxy.config - INFO - reading: /path/to/conf.yaml
[info] * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
[info] * Restarting with reloader
[2024-04-01 12:12:21,102] mapproxy.config - INFO - reading: /path/to/conf.yaml
Possible Fix
Steps to Reproduce
Create a configuration file containing several layers
Execute the command "mapproxy-util serve-develop {conf-file}.yaml"
Observe the log and check how many times the file is read
Context
The objective is that the service is not restarted, in order to reduce the time required for the service to be started up.
Your Environment
Version used: MapProxy 1.16
Environment name and version: Python 3.10
Server type and version:
Operating System and version: Ubuntu
The text was updated successfully, but these errors were encountered:
You are right, this should not happen normally. I will look if there is an easy fix for this. But as this script is only to be used for development, this is an inconvenience that we might have to live with.
To change this we would have to change all the calls in the chain to not pass along an app, but only the configuration. This might cause problems with other calls of these functions. I think it might be quite the hassle to change this.
Context
When executing the mapproxy-util serve-develop {conf-file}.yaml command, the service is restarted one or more times, so the configuration file is read at least twice. Therefore the service startup time is increased.
Expected Behavior
The mapproxy service should be started only once.
Actual Behavior
When the service starts, the following message appears:
mapproxy.config - INFO - reading: path/to/conf-file.yaml
When it finishes it shows that the service is running on localhost:8080 but when it starts the message "Restarting with reloader" appears, and again reads the configuration file:
Possible Fix
Steps to Reproduce
Context
The objective is that the service is not restarted, in order to reduce the time required for the service to be started up.
Your Environment
The text was updated successfully, but these errors were encountered: