We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b6820b commit a1b06d6Copy full SHA for a1b06d6
1 file changed
packages/opencode/src/account/service.ts
@@ -192,11 +192,17 @@ export class AccountService extends ServiceMap.Service<
192
193
const orgsByAccount = Effect.fn("AccountService.orgsByAccount")(function* () {
194
const accounts = yield* repo.list()
195
- return yield* Effect.forEach(
+ const [errors, results] = yield* Effect.partition(
196
accounts,
197
(account) => orgs(account.id).pipe(Effect.map((orgs) => ({ account, orgs }))),
198
{ concurrency: 3 },
199
)
200
+ for (const error of errors) {
201
+ yield* Effect.logWarning("failed to fetch orgs for account").pipe(
202
+ Effect.annotateLogs({ error: String(error) }),
203
+ )
204
+ }
205
+ return results
206
})
207
208
const orgs = Effect.fn("AccountService.orgs")(function* (accountID: AccountID) {
0 commit comments