Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/brain/gocdSlackFeeds/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const engineeringFeed = new DeployFeed({
});

export async function handler(body: GoCDResponse) {
await Promise.all([
const promises = [
deployFeed.handle(body),
devinfraFeed.handle(body),
snsSaaSFeed.handle(body),
Expand All @@ -292,7 +292,14 @@ export async function handler(body: GoCDResponse) {
engineeringFeed.handle(body),
snsS4SK8sFeed.handle(body),
snsSaaSK8sFeed.handle(body),
]);
];
// Don't fail the entire handler if one of the feeds fails
const results = await Promise.allSettled(promises);
results.forEach((result) => {
if (result.status === 'rejected' && result.reason instanceof Error) {
Sentry.captureException(result.reason);
}
});
}

export async function gocdSlackFeeds() {
Expand Down