-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat: Reload support for backend, changes to entrypoint script #1100
base: main
Are you sure you want to change the base?
Conversation
backend/backend/wsgi.py
Outdated
start_time = time.time() | ||
django_app = get_wsgi_application() | ||
logger.info(f"WSGI application initialized in {(time.time() - start_time):.3f} seconds") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be use time.perf_counter()
. This might be more accurate for these sort of use case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great initiative solving real pain point for the developers. The changes looks good. Let's keep improving small bits in similar fashion
Signed-off-by: Chandrasekharan M <[email protected]>
@@ -636,6 +636,7 @@ docker/*.env | |||
!docker/sample*.env | |||
docker/public_tools.json | |||
docker/proxy_overrides.yaml | |||
docker/compose.override.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chandrasekharan-zipstack This might not be needed.
We can check in the actual overrides yaml themselves. It will be activated only when you pass them via the -f
flag, hence mentioned.
Quality Gate passedIssues Measures |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chandrasekharan-zipstack LGTM overall.
Extending this we can have docker/compose_overrides/worker.yaml
etc and check them in. These will become built-in templates which can be picked by the devs and used as desired. See #1100 (comment) too.
Overall great initiative and really happy to see this. Let's keep improving one small thing at a time. All the best!
What
backend
entrypoint.sh
changes to perform migration and run in dev modeinotify
dev dependency to perform better file watching with fewer resourcesWhy
How
pdm run backend --dev
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Relevant Docs
Dependencies Versions
inotify>=0.2.10
Notes on Testing
Screenshots
Checklist
I have read and understood the Contribution Guidelines.