You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/04_upgrading/upgrading_to_v3.md
+5-16Lines changed: 5 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,26 +58,15 @@ async def main():
58
58
- The default client for working with Apify platform based `RequestQueue` is now optimized and simplified client which has significantly lower amount of API calls, but does not support multiple consumers working on the same queue. It is cheaper and faster and is suitable for the majority of the use cases.
59
59
- The full client is still available, but it has to be explicitly requested via `simple_request_queue=False` argument when using the `ApifyStorageClient`.
60
60
61
-
**Before (v2.x):**
62
-
63
-
```python
64
-
from apify import Actor
65
-
66
-
asyncdefmain():
67
-
asyncwith Actor:
68
-
...
69
-
```
70
-
71
61
**Now (v3.0):**
72
62
73
63
```python
74
-
from apify import Actor
75
-
from crawlee import service_locator
64
+
from apify.storages import RequestQueue
76
65
from apify.storage_clients import ApifyStorageClient
77
66
78
67
asyncdefmain():
79
-
#Use the full-featured RequestQueue client only if you really need it.
0 commit comments