Repository navigation
docs: clarify event block compute compatibility - #494
Conversation
🦋 Changeset detectedLatest commit: e8996d1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
15c8365 to
3858144
Compare
|
Since this PR was opened, container-backed AsyncJobs landed in #574: the CDK layer accepts Lambda or container compute ( |
|
Thanks for catching this. I'd missed updating the AsyncJob wording for #574. The README and DESIGN.md now distinguish Lambda event-source delivery from the container poller/worker path, including visibility handling, execution timeouts, and local-mock differences. I also aligned the related public API comments. CronJob's resolved-Lambda constraint and Realtime's default-Lambda requirement remain separate. I've also refreshed the PR description and rerun the build, lint, workspace unit tests, and local E2E; all pass. No runtime behavior changes. |
xyos
left a comment
There was a problem hiding this comment.
The follow-up commit fixes all four threads. The comparison tables, CronJob design, maxConcurrencyPerCPU default and compute inheritance wording now match the implementation. Thanks!
Brings in 14 commits from main, among them "fix(core): return Invalid Request for a null JSON-RPC body" (#1143), "fix(core): reject non-JSON-RPC response bodies with ApiError" (#1171), "feat(bb-logger,core): backend Lambda log lines carry the invocation's requestId" (#1325), #1131, #1132, #1142, #1167, #1173, #1178, #1214, #494 and CI changes (#946, #970, #971). packages/core/src/client/index.test.ts and lambda-handler.test.ts: keep both sides' tests (this branch's httpErrorStatus, namespace identity and per-call fetch suites; main's non-JSON-RPC body and request id suites). packages/core/src/api.ts: the httpErrorStatus docs now say what the client does since #1171 when a Hosting error page replaces a 403 / 404: it rejects with a bare ApiError carrying the HTTP status, instead of response.json() throwing. # Conflicts: # packages/core/src/client/index.test.ts # packages/core/src/lambda-handler.test.ts
Problem
Issue #, if available: N/A
The event-block documentation still describes a shared Lambda where each block actually uses its resolved compute. AsyncJob supports Lambda and container delivery after #574, and CronJob gained container delivery in #1113. The README, DESIGN, comparison tables, and public option comments need to describe those paths consistently.
Realtime is different: WebSocket handling still requires the default compute to be Lambda, rather than the compute resolved from a nearer scope.
Changes
computeinherits the nearest parent scope's compute, falling back to the backend default.maxConcurrencyPerCPUfor CPU-bound work. Explicit values are multiplied by vCPU count; omission means five in-flight deliveries per job per instance. Clarify that the public types require an explicit container compute to configure this option, even when a parent scope uses a container.timeoutSeconds, keep Realtime's default-Lambda requirement separate, and preserve the foreign-backend guards' descriptions.No executable code, public API signatures, infrastructure configuration, or runnable examples change (apart from added error constants). This replaces the earlier Lambda-only CronJob wording now that #1113 has landed.
Validation
npm run buildnpm run lintandnpm run lint:depsnpm testacross all workspaces, with serial test-file execution and all four generate-client fixture cases run in separate processes; none excludednpm run test:e2e:local, including comprehensive E2E, vendorize, IAM-boundary synth, and background-suite regression testsgit diff --check upstream/mainNo repository tests were added because this PR changes only documentation and source comments. No AWS deployment was performed.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.