-
Notifications
You must be signed in to change notification settings - Fork 0
Improve Vacation Planner Implementation #93
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
samples/web-app-cosmosdb-mongodb-api/python/src/gunicorn.conf.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import os | ||
|
|
||
|
|
||
| def worker_int(worker): | ||
| # SIGINT (Ctrl+C) default path raises SystemExit inside the worker's recv() | ||
| # loop, dumping a traceback through gunicorn's HTTP parser frames. os._exit | ||
| # short-circuits the unwind for a clean foreground stop. SIGTERM (graceful) | ||
| # is unaffected — it goes through a different code path. | ||
| os._exit(0) | ||
|
|
||
|
|
||
| def worker_abort(worker): | ||
| # SIGABRT is what the arbiter sends when a worker misses its heartbeat | ||
| # ([CRITICAL] WORKER TIMEOUT). The default handler does sys.exit(1), which | ||
| # unwinds through the same recv() stack as SIGINT and prints a misleading | ||
| # traceback. The WORKER TIMEOUT log line above it is the real diagnostic; | ||
| # exit at the C level to suppress the spurious trace. | ||
| os._exit(1) | ||
8 changes: 4 additions & 4 deletions
8
samples/web-app-cosmosdb-mongodb-api/python/src/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Flask==3.1.3 | ||
| azure-identity==1.25.1 | ||
| pymongo==4.15.3 | ||
| gunicorn==23.0.0 | ||
| python-dotenv==1.2.2 | ||
| azure-identity==1.25.3 | ||
| pymongo==4.17.0 | ||
| gunicorn==26.0.0 | ||
| python-dotenv==1.2.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
samples/web-app-cosmosdb-nosql-api/python/src/gunicorn.conf.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import os | ||
|
|
||
|
|
||
| def worker_int(worker): | ||
| # SIGINT (Ctrl+C) default path raises SystemExit inside the worker's recv() | ||
| # loop, dumping a traceback through gunicorn's HTTP parser frames. os._exit | ||
| # short-circuits the unwind for a clean foreground stop. SIGTERM (graceful) | ||
| # is unaffected — it goes through a different code path. | ||
| os._exit(0) | ||
|
paolosalvatori marked this conversation as resolved.
|
||
|
|
||
|
|
||
| def worker_abort(worker): | ||
| # SIGABRT is what the arbiter sends when a worker misses its heartbeat | ||
| # ([CRITICAL] WORKER TIMEOUT). The default handler does sys.exit(1), which | ||
| # unwinds through the same recv() stack as SIGINT and prints a misleading | ||
| # traceback. The WORKER TIMEOUT log line above it is the real diagnostic; | ||
| # exit at the C level to suppress the spurious trace. | ||
| os._exit(1) | ||
8 changes: 4 additions & 4 deletions
8
samples/web-app-cosmosdb-nosql-api/python/src/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Flask==3.1.3 | ||
| azure-mgmt-cosmosdb==9.8.0 | ||
| azure-cosmos==4.7.0 | ||
| gunicorn==22.0.0 | ||
| azure-mgmt-cosmosdb==9.9.0 | ||
| azure-cosmos==4.15.0 | ||
| gunicorn==26.0.0 | ||
| python-dotenv==1.2.2 | ||
| setuptools==79.0.1 | ||
| setuptools==82.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
samples/web-app-managed-identity/python/src/gunicorn.conf.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import os | ||
|
|
||
|
|
||
| def worker_int(worker): | ||
| # SIGINT (Ctrl+C) default path raises SystemExit inside the worker's recv() | ||
| # loop, dumping a traceback through gunicorn's HTTP parser frames. os._exit | ||
| # short-circuits the unwind for a clean foreground stop. SIGTERM (graceful) | ||
| # is unaffected — it goes through a different code path. | ||
| os._exit(0) | ||
|
paolosalvatori marked this conversation as resolved.
|
||
|
|
||
|
|
||
| def worker_abort(worker): | ||
| # SIGABRT is what the arbiter sends when a worker misses its heartbeat | ||
| # ([CRITICAL] WORKER TIMEOUT). The default handler does sys.exit(1), which | ||
| # unwinds through the same recv() stack as SIGINT and prints a misleading | ||
| # traceback. The WORKER TIMEOUT log line above it is the real diagnostic; | ||
| # exit at the C level to suppress the spurious trace. | ||
| os._exit(1) | ||
10 changes: 5 additions & 5 deletions
10
samples/web-app-managed-identity/python/src/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Flask==3.1.3 | ||
| azure-identity==1.16.1 | ||
| azure-storage-blob==12.26.0 | ||
| azure-core==1.38.0 | ||
| gunicorn==23.0.0 | ||
| python-dotenv==1.2.2 | ||
| azure-identity==1.25.3 | ||
| azure-storage-blob==12.29.0 | ||
| azure-core==1.41.0 | ||
| gunicorn==26.0.0 | ||
| python-dotenv==1.2.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import os | ||
|
|
||
|
|
||
| def worker_int(worker): | ||
| # SIGINT (Ctrl+C) default path raises SystemExit inside the worker's recv() | ||
| # loop, dumping a traceback through gunicorn's HTTP parser frames. os._exit | ||
| # short-circuits the unwind for a clean foreground stop. SIGTERM (graceful) | ||
| # is unaffected — it goes through a different code path. | ||
| os._exit(0) | ||
|
paolosalvatori marked this conversation as resolved.
|
||
|
|
||
|
|
||
| def worker_abort(worker): | ||
| # SIGABRT is what the arbiter sends when a worker misses its heartbeat | ||
| # ([CRITICAL] WORKER TIMEOUT). The default handler does sys.exit(1), which | ||
| # unwinds through the same recv() stack as SIGINT and prints a misleading | ||
| # traceback. The WORKER TIMEOUT log line above it is the real diagnostic; | ||
| # exit at the C level to suppress the spurious trace. | ||
| os._exit(1) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| Flask==3.1.3 | ||
| azure-identity==1.25.3 | ||
| pyodbc==5.3.0 | ||
| gunicorn==25.3.0 | ||
| gunicorn==26.0.0 | ||
| python-dotenv==1.2.2 | ||
| azure-keyvault-secrets==4.10.0 | ||
| azure-keyvault-certificates==4.10.0 | ||
| cryptography==46.0.7 | ||
| azure-keyvault-secrets==4.11.0 | ||
| azure-keyvault-certificates==4.11.1 | ||
| cryptography==48.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.