crawlee 1.0.3b4__py3-none-any.whl → 1.0.3b6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crawlee/storage_clients/_sql/_request_queue_client.py +10 -2
- crawlee/storage_clients/_sql/_storage_client.py +1 -1
- {crawlee-1.0.3b4.dist-info → crawlee-1.0.3b6.dist-info}/METADATA +1 -1
- {crawlee-1.0.3b4.dist-info → crawlee-1.0.3b6.dist-info}/RECORD +7 -7
- {crawlee-1.0.3b4.dist-info → crawlee-1.0.3b6.dist-info}/WHEEL +0 -0
- {crawlee-1.0.3b4.dist-info → crawlee-1.0.3b6.dist-info}/entry_points.txt +0 -0
- {crawlee-1.0.3b4.dist-info → crawlee-1.0.3b6.dist-info}/licenses/LICENSE +0 -0
|
@@ -546,12 +546,20 @@ class SqlRequestQueueClient(RequestQueueClient, SqlClientMixin):
|
|
|
546
546
|
block_until = now + timedelta(seconds=self._BLOCK_REQUEST_TIME)
|
|
547
547
|
# Extend blocking for forefront request, it is considered blocked by the current client.
|
|
548
548
|
stmt = stmt.values(
|
|
549
|
-
sequence_number=new_sequence,
|
|
549
|
+
sequence_number=new_sequence,
|
|
550
|
+
time_blocked_until=block_until,
|
|
551
|
+
client_key=self.client_key,
|
|
552
|
+
data=request.model_dump_json(),
|
|
550
553
|
)
|
|
551
554
|
else:
|
|
552
555
|
new_sequence = state.sequence_counter
|
|
553
556
|
state.sequence_counter += 1
|
|
554
|
-
stmt = stmt.values(
|
|
557
|
+
stmt = stmt.values(
|
|
558
|
+
sequence_number=new_sequence,
|
|
559
|
+
time_blocked_until=None,
|
|
560
|
+
client_key=None,
|
|
561
|
+
data=request.model_dump_json(),
|
|
562
|
+
)
|
|
555
563
|
|
|
556
564
|
result = await session.execute(stmt)
|
|
557
565
|
result = cast('CursorResult', result) if not isinstance(result, CursorResult) else result
|
|
@@ -149,7 +149,7 @@ class SqlStorageClient(StorageClient):
|
|
|
149
149
|
# Raise an error if the new version creates breaking changes in the database schema.
|
|
150
150
|
if db_version and db_version != __version__:
|
|
151
151
|
warnings.warn(
|
|
152
|
-
f'Database version {db_version
|
|
152
|
+
f'Database version {db_version} does not match library version {__version__}. '
|
|
153
153
|
'This may lead to unexpected behavior. Drop the db if you want to make sure that '
|
|
154
154
|
'everything will work fine.',
|
|
155
155
|
category=UserWarning,
|
|
@@ -176,8 +176,8 @@ crawlee/storage_clients/_sql/_client_mixin.py,sha256=U9ThDUuRbT5JDtCFlBurhZIs1Ay
|
|
|
176
176
|
crawlee/storage_clients/_sql/_dataset_client.py,sha256=tiJVvOPZgc7cy4kGfWnun-g2TJMHMdaLnoqns5Sl6ek,10203
|
|
177
177
|
crawlee/storage_clients/_sql/_db_models.py,sha256=Gs4MS1YL0gWaUfNReVKJUXsqbU_d5jxiyvZ0sFxAV2A,9845
|
|
178
178
|
crawlee/storage_clients/_sql/_key_value_store_client.py,sha256=LnVLWhOjo4LdvtCac4fwuf__DgEQjlqSxz8KkjY3Qx4,11311
|
|
179
|
-
crawlee/storage_clients/_sql/_request_queue_client.py,sha256=
|
|
180
|
-
crawlee/storage_clients/_sql/_storage_client.py,sha256=
|
|
179
|
+
crawlee/storage_clients/_sql/_request_queue_client.py,sha256=OlvAOwEoYY5f4NO7BdhLFRT_i_E3YzJDb_ptKKK2huY,29478
|
|
180
|
+
crawlee/storage_clients/_sql/_storage_client.py,sha256=ITtMpwfotIW4SZjO4rycB5wfMKaqTAJgMvzcUZxckrk,10905
|
|
181
181
|
crawlee/storage_clients/_sql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
182
|
crawlee/storages/__init__.py,sha256=wc2eioyCKAAYrg4N7cshpjC-UbE23OzGar9nK_kteSY,186
|
|
183
183
|
crawlee/storages/_base.py,sha256=zUOcMJTg8MAzq-m9X1NJcWncCfxzI5mb5MyY35WAkMk,2310
|
|
@@ -187,8 +187,8 @@ crawlee/storages/_request_queue.py,sha256=bjBOGbpMaGUsqJPVB-JD2VShziPAYMI-GvWKKp
|
|
|
187
187
|
crawlee/storages/_storage_instance_manager.py,sha256=72n0YlPwNpSQDJSPf4TxnI2GvIK6L-ZiTmHRbFcoVU0,8164
|
|
188
188
|
crawlee/storages/_utils.py,sha256=Yz-5tEBYKYCFJemYT29--uGJqoJLApLDLgPcsnbifRw,439
|
|
189
189
|
crawlee/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
190
|
-
crawlee-1.0.
|
|
191
|
-
crawlee-1.0.
|
|
192
|
-
crawlee-1.0.
|
|
193
|
-
crawlee-1.0.
|
|
194
|
-
crawlee-1.0.
|
|
190
|
+
crawlee-1.0.3b6.dist-info/METADATA,sha256=7gVTyMLixer2yNVr26q903WFfW0rVXX-wPTqq97IVts,29314
|
|
191
|
+
crawlee-1.0.3b6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
192
|
+
crawlee-1.0.3b6.dist-info/entry_points.txt,sha256=1p65X3dA-cYvzjtlxLL6Kn1wpY-3uEDVqJLp53uNPeo,45
|
|
193
|
+
crawlee-1.0.3b6.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
|
|
194
|
+
crawlee-1.0.3b6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|