Skip to content

Commit 4868945

Browse files
committed
fix: run paired DB writes sequentially to avoid hiding failed stages
Effect.all with concurrency: 2 uses fail-fast semantics, so when both branches fail only one stage is reported. Remove the concurrency option so operations run sequentially, ensuring the reported stage is always deterministic and accurate.
1 parent 4c423f9 commit 4868945

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infra/relay/src/agentActivity/Devices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const make = Effect.gen(function* () {
118118
)
119119
: Effect.void,
120120
],
121-
{ concurrency: 2, discard: true },
121+
{ discard: true },
122122
);
123123

124124
yield* db
@@ -209,7 +209,7 @@ export const make = Effect.gen(function* () {
209209
),
210210
),
211211
],
212-
{ concurrency: 2, discard: true },
212+
{ discard: true },
213213
);
214214
}),
215215
listForUser: Effect.fn("relay.devices.listForUser")(function* (input) {

0 commit comments

Comments
 (0)