Commit cff86c8
feat: aio workers + keep streams alive (#69)
* feat: aio workers + keep streams alive
* Update examples/example.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/resolver_athena_client/client/transformers/worker_batcher.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: some cleanup with logging levels and dead code
* feat: cleanup some low hanging fruit
* Clean up batching system: remove RequestBatcher and BaseBatcher, use WorkerBatcher for all batching needs
* Update src/resolver_athena_client/client/athena_client.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/resolver_athena_client/client/transformers/worker_batcher.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/resolver_athena_client/client/transformers/worker_batcher.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/resolver_athena_client/client/athena_options.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add configurable num_workers option to AthenaOptions
- Add num_workers field to AthenaOptions with default value of 5
- Update documentation with usage guidelines for CPU vs I/O bound scenarios
- Add test to verify num_workers configuration is properly passed to WorkerBatcher
- Allows users to tune concurrent processing based on their hardware and workload
* Update src/resolver_athena_client/client/transformers/worker_batcher.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* style: fix lint issue
* feat: remove unused config
* feat: this
* feat: don't over-handle errors
* feat: improve closing logic
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 417bea0 commit cff86c8
25 files changed
Lines changed: 1884 additions & 1661 deletions
File tree
- examples
- utils
- src/resolver_athena_client/client
- transformers
- tests/client
- transformers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
62 | 86 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
90 | 108 | | |
91 | 109 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | | - | |
| 115 | + | |
| 116 | + | |
101 | 117 | | |
102 | 118 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 119 | + | |
| 120 | + | |
111 | 121 | | |
112 | | - | |
113 | | - | |
| 122 | + | |
114 | 123 | | |
115 | | - | |
116 | | - | |
| 124 | + | |
117 | 125 | | |
| 126 | + | |
118 | 127 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
| 140 | + | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
| |||
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | | - | |
195 | | - | |
| 193 | + | |
196 | 194 | | |
| 195 | + | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
203 | | - | |
204 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
207 | 221 | | |
208 | 222 | | |
209 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments