apify 3.4.2b9__tar.gz → 3.4.2b10__tar.gz
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.
- {apify-3.4.2b9 → apify-3.4.2b10}/CHANGELOG.md +1 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/PKG-INFO +1 -1
- {apify-3.4.2b9 → apify-3.4.2b10}/pyproject.toml +1 -1
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_actor.py +6 -1
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/events/_apify_event_manager.py +2 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/.gitignore +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/CONTRIBUTING.md +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/LICENSE +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/README.md +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_charging.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_configuration.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_consts.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_crypto.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_proxy_configuration.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_utils.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/_webhook.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/events/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/events/_types.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/events/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/log.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/request_loaders/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/request_loaders/_apify_request_list.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/request_loaders/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/_actor_runner.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/_async_thread.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/_logging_config.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/_serialization.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/extensions/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/extensions/_httpcache.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/middlewares/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/middlewares/apify_proxy.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/middlewares/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/pipelines/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/pipelines/actor_dataset_push.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/pipelines/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/requests.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/scheduler.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/scrapy/utils.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_alias_resolving.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_api_client_creation.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_dataset_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_key_value_store_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_models.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_request_queue_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_request_queue_shared_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_request_queue_single_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_storage_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_utils.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_file_system/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_file_system/_dataset_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_file_system/_key_value_store_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_file_system/_storage_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_ppe_dataset_mixin.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_smart_apify/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_smart_apify/_storage_client.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/py.typed +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storages/__init__.py +0 -0
- {apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storages/py.typed +0 -0
|
@@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
|
|
|
13
13
|
- **scrapy:** Make logging configuration idempotent ([#954](https://github.com/apify/apify-sdk-python/pull/954)) ([2cc5602](https://github.com/apify/apify-sdk-python/commit/2cc5602b741b93c81f264d4e09e0d9bcfc7200f2)) by [@vdusek](https://github.com/vdusek)
|
|
14
14
|
- Bump typing-extensions floor to 4.4.0 ([#960](https://github.com/apify/apify-sdk-python/pull/960)) ([b7e7d9c](https://github.com/apify/apify-sdk-python/commit/b7e7d9c9a053992d4281a8a19897957d2bff67e1)) by [@vdusek](https://github.com/vdusek)
|
|
15
15
|
- Preserve decorated symbol types in docs_group and docs_name ([#964](https://github.com/apify/apify-sdk-python/pull/964)) ([6c359a7](https://github.com/apify/apify-sdk-python/commit/6c359a714b089b24c1be7fa9a07c9b9899cc5e11)) by [@vdusek](https://github.com/vdusek)
|
|
16
|
+
- Exit already-entered contexts when Actor or event manager init fails ([#969](https://github.com/apify/apify-sdk-python/pull/969)) ([c1a15a7](https://github.com/apify/apify-sdk-python/commit/c1a15a7425eab74f3fe8848160576741c036c4fa)) by [@vdusek](https://github.com/vdusek)
|
|
16
17
|
|
|
17
18
|
### 🚜 Refactor
|
|
18
19
|
|
|
@@ -197,7 +197,12 @@ class _ActorType:
|
|
|
197
197
|
self.log.debug('Event manager initialized')
|
|
198
198
|
|
|
199
199
|
# Initialize the charging manager.
|
|
200
|
-
|
|
200
|
+
try:
|
|
201
|
+
await self._charging_manager_implementation.__aenter__()
|
|
202
|
+
except BaseException:
|
|
203
|
+
# Exit the already-entered event manager so its recurring tasks do not leak.
|
|
204
|
+
await self.event_manager.__aexit__(None, None, None)
|
|
205
|
+
raise
|
|
201
206
|
self.log.debug('Charging manager initialized')
|
|
202
207
|
|
|
203
208
|
# Mark initialization as complete and update global state.
|
|
@@ -78,6 +78,8 @@ class ApifyEventManager(EventManager):
|
|
|
78
78
|
)
|
|
79
79
|
is_connected = await self._connected_to_platform_websocket
|
|
80
80
|
if not is_connected:
|
|
81
|
+
# Exit the already-entered parent so the recurring persist state task does not leak.
|
|
82
|
+
await self.__aexit__(None, None, None)
|
|
81
83
|
raise RuntimeError('Error connecting to platform events websocket!')
|
|
82
84
|
else:
|
|
83
85
|
logger.debug('APIFY_ACTOR_EVENTS_WS_URL env var not set, no events from Apify platform will be emitted.')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_key_value_store_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_request_queue_shared_client.py
RENAMED
|
File without changes
|
{apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_apify/_request_queue_single_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify-3.4.2b9 → apify-3.4.2b10}/src/apify/storage_clients/_file_system/_key_value_store_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|