apify 3.0.1b2__py3-none-any.whl → 3.0.2b2__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.

Potentially problematic release.


This version of apify might be problematic. Click here for more details.

@@ -247,10 +247,16 @@ class _ApifyRequestQueueSingleClient:
247
247
  else:
248
248
  # Only fetch the request if we do not know it yet.
249
249
  if request.unique_key not in self._requests_cache:
250
- request = Request.model_validate(
251
- await self._api_client.get_request(unique_key_to_request_id(request.unique_key))
252
- )
253
- self._requests_cache[request.unique_key] = request
250
+ request_id = unique_key_to_request_id(request.unique_key)
251
+ complete_request_data = await self._api_client.get_request(request_id)
252
+
253
+ if complete_request_data is not None:
254
+ request = Request.model_validate(complete_request_data)
255
+ self._requests_cache[request.unique_key] = request
256
+ else:
257
+ logger.warning(
258
+ f'Could not fetch request data for unique_key=`{request.unique_key}` (id=`{request_id}`)'
259
+ )
254
260
 
255
261
  # Add new requests to the end of the head, unless already present in head
256
262
  if request.unique_key not in self._head_requests:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify
3
- Version: 3.0.1b2
3
+ Version: 3.0.2b2
4
4
  Summary: Apify SDK for Python
5
5
  Project-URL: Apify Homepage, https://apify.com
6
6
  Project-URL: Changelog, https://docs.apify.com/sdk/python/docs/changelog
@@ -40,7 +40,7 @@ apify/storage_clients/_apify/_key_value_store_client.py,sha256=42dARbLX2oeOW7uYY
40
40
  apify/storage_clients/_apify/_models.py,sha256=GEaN7Got1zIg42QPH36obHRWRDVNtzOkRuOWYRf9bFU,4572
41
41
  apify/storage_clients/_apify/_request_queue_client.py,sha256=QXCLdTBeNW8RKWnxQOE71KOpZ_lqvqisa89eeiWwZ38,14200
42
42
  apify/storage_clients/_apify/_request_queue_shared_client.py,sha256=CbvwcXRvfuBoy3wrQEdLX9_vKELPH_WhHQARP14audM,20709
43
- apify/storage_clients/_apify/_request_queue_single_client.py,sha256=6CRSyWZPbKQJy3i2JBrojVTnhTYIB3gE0CTymYjpkZA,16958
43
+ apify/storage_clients/_apify/_request_queue_single_client.py,sha256=bQMebZKyeN_gYF1ZcHcaWng_q0m41KsiNvV1YRyzD3M,17299
44
44
  apify/storage_clients/_apify/_storage_client.py,sha256=hFl_PuX1UgOydBD6pieZ0u2NWbDmZV-i0qygKdsuHt4,4873
45
45
  apify/storage_clients/_apify/_utils.py,sha256=ywXoSM69amRokUZcshbAvQLIcSZq4L-bpYIGyeFxCGQ,7696
46
46
  apify/storage_clients/_apify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -51,7 +51,7 @@ apify/storage_clients/_smart_apify/__init__.py,sha256=614B2AaWY-dx6RQ6mod7VVR8gF
51
51
  apify/storage_clients/_smart_apify/_storage_client.py,sha256=GCPmVe_xWAFcO2Cuej4su4i97_d33Q9Ih_Sc5xW2Wa4,4674
52
52
  apify/storages/__init__.py,sha256=-9tEYJVabVs_eRVhUehxN58GH0UG8OfuGjGwuDieP2M,122
53
53
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
- apify-3.0.1b2.dist-info/METADATA,sha256=2NLa54gUwW-FF9Rf6Qc4XQo2JsAVOvPaThJljzT4OZo,22582
55
- apify-3.0.1b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
- apify-3.0.1b2.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
57
- apify-3.0.1b2.dist-info/RECORD,,
54
+ apify-3.0.2b2.dist-info/METADATA,sha256=OwLP1QYwgKoqUY9Bh_3UHm7hisRcAKOApjxwkWfuUGs,22582
55
+ apify-3.0.2b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
+ apify-3.0.2b2.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
57
+ apify-3.0.2b2.dist-info/RECORD,,