Describe the bug
When running unleash with flask/gunicorn, it is not getting updated with latest toggles from unleash server when it is run with option "--preload". More info on preload
gunicorn --chdir app app:app -w 2 --threads 2 -b 0.0.0.0:80 --preload
To Reproduce
I have a branch to demonstrate. using this demo toggle https://app.unleash-hosted.com/demo/projects/default/features/gunicorn
- From this Repo https://github.com/raymzag/Flask_Docker_App
docker-compose up --build
- Go to
http://localhost/test_unleash
- Try toggling on/off, give it some time 10-15s. It will not be updated.
- Remove the
--preload option from https://github.com/raymzag/Flask_Docker_App/blob/master/gunicorn.sh
- Do
docker-compose up --build again.
- Try toggling on/off, give it some time 10-15s. it will be updated.
Expected behavior
Expects the unleash toggles to be refreshed in flask/gunicorn app with --preload option.
Logs
If applicable, add logs or output to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
When running unleash with flask/gunicorn, it is not getting updated with latest toggles from unleash server when it is run with option "--preload". More info on preload
gunicorn --chdir app app:app -w 2 --threads 2 -b 0.0.0.0:80 --preloadTo Reproduce
I have a branch to demonstrate. using this demo toggle
https://app.unleash-hosted.com/demo/projects/default/features/gunicorndocker-compose up --buildhttp://localhost/test_unleash--preloadoption from https://github.com/raymzag/Flask_Docker_App/blob/master/gunicorn.shdocker-compose up --buildagain.Expected behavior
Expects the unleash toggles to be refreshed in flask/gunicorn app with --preload option.
Logs
If applicable, add logs or output to help explain your problem.
Additional context
Add any other context about the problem here.