Commit 5048aeb
authored
Feature/code refine (#56)
* Refactor HTTP/2 transport to use builder pattern for remote transport creation
- Updated `Http2RemoteTransport` to utilize a builder pattern, enhancing flexibility in specifying transport targets (by name, ID, or hierarchical path).
- Introduced `TransportTarget` enum to clearly define the target type for remote actors.
- Refactored related code in `ActorSystem` to align with the new transport creation method, improving readability and maintainability.
- Enhanced tests to validate the new builder functionality and ensure correct behavior across various transport scenarios.
* Refactor Pulsing framework for improved actor management and API clarity
- Removed unused imports and refactored actor service references in `__init__.py` for better readability.
- Consolidated actor service registration in `actor_system` to enhance clarity and maintainability.
- Streamlined the `Remote` API in `router.py` by introducing a helper method for chunk building, reducing code duplication.
- Updated `RustSchedulerBase` and its subclasses to improve worker selection logic and enhance code organization.
- Refactored `StorageManager` to simplify bucket and topic management, improving locking mechanisms and resource handling.
- Enhanced `SyncQueue` and `SyncQueueReader` to utilize a common synchronous execution method, improving code consistency.
- Updated tests to reflect changes in actor proxy handling and ensure robust functionality across various scenarios.
* Refactor Pulsing framework to enhance API clarity and actor management
- Removed unused imports and consolidated actor service references in `__init__.py` for improved readability.
- Updated `_GlobalQueueAPI` and `_GlobalTopicAPI` to utilize direct queue and topic writing/reading functions, enhancing clarity.
- Introduced new `protocol.py` and `proxy.py` files to encapsulate message serialization and actor proxy functionalities, streamlining the codebase.
- Refactored `remote.py` to remove redundant methods and improve organization, focusing on actor lifecycle management.
- Enhanced `service.py` with a dedicated `PythonActorService` for better actor creation handling and improved error management.
- Updated documentation and tests to reflect changes in actor management and API structure, ensuring robust functionality.
* Refactor Python API documentation for Pulsing framework
- Streamlined the Python API documentation by reorganizing sections for clarity, including lifecycle management, actor definition, and usage examples.
- Enhanced actor management details, including initialization, spawning, and resolution methods, to improve user understanding.
- Updated examples to reflect new API structures and best practices, ensuring consistency and clarity in usage.
- Removed outdated sections and consolidated information to provide a more cohesive and user-friendly documentation experience.
* Enhance Pulsing framework's actor resolution and documentation
- Updated the `resolve` function to support typed proxies, allowing for direct method calls without needing to use `.as_type()` or `.as_any()`.
- Improved documentation across multiple files to clarify the usage of `pul.resolve()` for both typed and untyped proxies, enhancing user understanding.
- Refactored examples to demonstrate the new resolution capabilities and best practices for actor management.
- Consolidated references to actor resolution methods in the API documentation, ensuring consistency and clarity for users transitioning from previous versions.1 parent 33cf758 commit 5048aeb
77 files changed
Lines changed: 4364 additions & 4902 deletions
File tree
- crates
- pulsing-actor
- src
- system
- transport
- http2
- tests/unit/transport
- pulsing-py/src
- docs/src
- api
- design
- guide
- quickstart
- examples
- agent
- autogen
- langgraph
- python
- python/pulsing
- core
- examples
- integrations
- autogen
- langgraph
- serving
- streaming
- tests/python
- apis
- actor_system
- actor
- ray_compat
- ray_like
- core
- integrations
- streaming
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 17 | + | |
| 18 | + | |
29 | 19 | | |
30 | | - | |
| 20 | + | |
| 21 | + | |
31 | 22 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
35 | 26 | | |
36 | | - | |
| 27 | + | |
37 | 28 | | |
38 | 29 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 30 | + | |
42 | 31 | | |
43 | 32 | | |
44 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
45 | 36 | | |
46 | 37 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
50 | 47 | | |
51 | 48 | | |
52 | | - | |
| 49 | + | |
53 | 50 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
57 | 52 | | |
58 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | | - | |
| 69 | + | |
61 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
62 | 79 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 80 | | |
71 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
72 | 85 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | | - | |
| 90 | + | |
79 | 91 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
83 | 97 | | |
84 | | - | |
| 98 | + | |
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
97 | 113 | | |
98 | | - | |
| 114 | + | |
99 | 115 | | |
100 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
101 | 121 | | |
102 | 122 | | |
103 | | - | |
104 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
105 | 127 | | |
106 | | - | |
107 | | - | |
| 128 | + | |
108 | 129 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
112 | 135 | | |
113 | | - | |
| 136 | + | |
114 | 137 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
118 | 141 | | |
119 | | - | |
120 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
121 | 147 | | |
122 | 148 | | |
123 | | - | |
| 149 | + | |
124 | 150 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 151 | + | |
128 | 152 | | |
129 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
130 | 156 | | |
131 | | - | |
| 157 | + | |
132 | 158 | | |
133 | | - | |
| 159 | + | |
134 | 160 | | |
135 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
136 | 164 | | |
137 | | - | |
| 165 | + | |
138 | 166 | | |
139 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
208 | 217 | | |
209 | | - | |
210 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
211 | 226 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
215 | 235 | | |
216 | 236 | | |
| 237 | + | |
| 238 | + | |
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
208 | 217 | | |
209 | | - | |
210 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
211 | 226 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
215 | 235 | | |
216 | 236 | | |
| 237 | + | |
| 238 | + | |
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
127 | | - | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | | - | |
131 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
191 | | - | |
192 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
| |||
0 commit comments