Skip to content

Commit bedcd8d

Browse files
committed
update types
1 parent 83225de commit bedcd8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/crawlee/storage_clients/_sql/_db_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class MetadataBufferDb:
283283
"""Auto-increment primary key for ordering."""
284284

285285
# Timestamp fields - use max value when aggregating
286-
accessed_at: Mapped[datetime | None] = mapped_column(AwareDateTime, nullable=False)
286+
accessed_at: Mapped[datetime] = mapped_column(AwareDateTime, nullable=False)
287287
"""New accessed_at timestamp, if being updated."""
288288

289289
modified_at: Mapped[datetime | None] = mapped_column(AwareDateTime, nullable=True)

src/crawlee/storage_clients/_sql/_storage_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def _get_or_create_engine(self, configuration: Configuration) -> AsyncEngine:
267267
pool_size=5,
268268
max_overflow=10,
269269
pool_timeout=60,
270+
pool_recycle=600,
270271
pool_pre_ping=True,
271272
echo=False,
272273
connect_args={'timeout': 30},

0 commit comments

Comments
 (0)