Skip to content

Commit 72bbc77

Browse files
committed
fix(deps): pin to mangum==0.19.0
1 parent f4a9e1e commit 72bbc77

File tree

10 files changed

+39
-25
lines changed

10 files changed

+39
-25
lines changed

lib/stac-api/runtime/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "stac-api runtime"
55
authors = [{ name = "hrodmn", email = "henry@developmentseed.org" }]
66
requires-python = ">=3.12"
77
dependencies = [
8+
"mangum==0.19",
89
"stac-fastapi-pgstac[awslambda]>=6.0,<6.1",
910
"starlette-cramjam>=0.4,<0.5",
1011
]

lib/stac-api/runtime/src/stac_api/handler.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,14 @@ async def shutdown_event():
139139

140140

141141
if "AWS_EXECUTION_ENV" in os.environ:
142-
loop = asyncio.get_event_loop()
143-
loop.run_until_complete(app.router.startup())
142+
logger.info("Cold start: initializing database connection...")
143+
loop = asyncio.new_event_loop()
144+
asyncio.set_event_loop(loop)
145+
loop.run_until_complete(
146+
connect_to_db(
147+
app,
148+
postgres_settings=postgres_settings,
149+
add_write_connection_pool=with_transactions,
150+
)
151+
)
152+
logger.info("Database connection initialized.")

lib/stac-api/runtime/uv.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/stac-auth-proxy/runtime/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0"
44
description = "stac-auth-proxy-api runtime"
55
requires-python = ">=3.12"
66
dependencies = [
7-
"mangum>=0.19.0",
7+
"mangum==0.19",
88
"stac-auth-proxy>=0.6,<1",
99
]
1010

lib/stac-auth-proxy/runtime/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tipg-api/runtime/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0"
44
description = "tipg-api runtime"
55
requires-python = ">=3.12"
66
dependencies = [
7-
"mangum>=0.19.0",
7+
"mangum==0.19",
88
"tipg>=1.2,<1.3",
99
]
1010

lib/tipg-api/runtime/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/titiler-pgstac-api/runtime/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "titiler-pgstac-api runtime"
55
requires-python = ">=3.12"
66
dependencies = [
77
"titiler-pgstac[psycopg-binary]>=1.9.0,<1.10",
8-
"mangum>=0.19.0",
8+
"mangum==0.19",
99
]
1010

1111
[dependency-groups]

lib/titiler-pgstac-api/runtime/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uv.lock

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)