File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed
src/apify/storage_clients/_apify Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ async def open(
129
129
130
130
@override
131
131
async def purge (self ) -> None :
132
- # TODO: better?
133
- # https://github.com/apify/apify-sdk-python/issues/469
134
- async with self . _lock :
135
- await self . _api_client . delete ( )
132
+ raise NotImplementedError (
133
+ 'Purging datasets is not supported in the Apify platform. '
134
+ 'Use the `drop` method to delete the dataset instead.'
135
+ )
136
136
137
137
@override
138
138
async def drop (self ) -> None :
Original file line number Diff line number Diff line change @@ -130,10 +130,10 @@ async def open(
130
130
131
131
@override
132
132
async def purge (self ) -> None :
133
- # TODO: better?
134
- # https://github.com/apify/apify-sdk-python/issues/469
135
- async with self . _lock :
136
- await self . _api_client . delete ( )
133
+ raise NotImplementedError (
134
+ 'Purging key-value stores is not supported in the Apify platform. '
135
+ 'Use the `drop` method to delete the key-value store instead.'
136
+ )
137
137
138
138
@override
139
139
async def drop (self ) -> None :
Original file line number Diff line number Diff line change @@ -166,10 +166,10 @@ async def open(
166
166
167
167
@override
168
168
async def purge (self ) -> None :
169
- # TODO: better?
170
- # https://github.com/apify/apify-sdk-python/issues/469
171
- async with self . _lock :
172
- await self . _api_client . delete ( )
169
+ raise NotImplementedError (
170
+ 'Purging the request queue is not supported in the Apify platform. '
171
+ 'Use the `drop` method to delete the request queue instead.'
172
+ )
173
173
174
174
@override
175
175
async def drop (self ) -> None :
Original file line number Diff line number Diff line change @@ -46,9 +46,6 @@ async def main() -> None:
46
46
assert len (env_dict .get ('actor_id' , '' )) == 17
47
47
assert len (env_dict .get ('actor_run_id' , '' )) == 17
48
48
assert len (env_dict .get ('user_id' , '' )) == 17
49
- assert len (env_dict .get ('default_dataset_id' , '' )) == 17
50
- assert len (env_dict .get ('default_key_value_store_id' , '' )) == 17
51
- assert len (env_dict .get ('default_request_queue_id' , '' )) == 17
52
49
53
50
actor = await make_actor (label = 'get-env' , main_func = main )
54
51
run_result = await run_actor (actor )
You can’t perform that action at this time.
0 commit comments