Repository navigation
Commit b8f3430
feat(durable): wait for callbacks with ctx.wait_for_callback (#400)
* chore(openapi): sync the durable callback contract
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(durable): wait for callbacks with ctx.wait_for_callback
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(openapi): sync the per-token callback rate limit
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(durable): refuse an async callback submitter
The runtime calls the submitter on a thread without an event loop, and its result was discarded, so an async def submitter returned a coroutine that never ran: the wait opened and nothing received the token. Refuse an async def submitter with a TypeError before the callback opens, and fail the hand-off when a submitter returns any other awaitable, closing a coroutine so it does not warn later.
The submitter stays typed as returning object, as in the JavaScript SDK, so one written as an expression that returns what it started still type-checks. The token fixture now reads as the fake it is.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(openapi): sync the callback registration's operation id
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(durable): name the callback's operation when a replay registers it
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ec49a8d commit b8f3430
66 files changed
Lines changed: 6407 additions & 84 deletions
File tree
- docs
- openapi
- src/volcano_sdk
- _generated
- api
- authentication
- autofix
- durable_functions
- frontends
- functions
- o_auth_authentication
- projects
- storage_policies
- models
- _tests
- fixtures
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 | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
212 | 261 | | |
213 | 262 | | |
214 | 263 | | |
| |||
322 | 371 | | |
323 | 372 | | |
324 | 373 | | |
| 374 | + | |
| 375 | + | |
325 | 376 | | |
0 commit comments