The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update execute-workflows.ts
Kiran Kcdeae5313861
diff --git a/apps/web/lib/api/workflows/execute-workflows.ts b/apps/web/lib/api/workflows/execute-workflows.tsindex d50aa283d9..3d0b43ce9a 100644--- a/apps/web/lib/api/workflows/execute-workflows.ts+++ b/apps/web/lib/api/workflows/execute-workflows.ts@@ -1,4 +1,5 @@import { WorkflowContext } from "@/lib/api/workflows/types";+import { logger, toErrorFields } from "@/lib/axiom/server";import { aggregatePartnerLinksStats } from "@/lib/partners/aggregate-partner-links-stats";import { prisma } from "@/lib/prisma";import { WORKFLOW_ACTION_TYPES } from "@/lib/zod/schemas/workflows";@@ -209,7 +210,17 @@ export async function executeWorkflows({});} catch (error) {console.error(`Failed to execute workflow ${workflow.id}:`, error);++ logger.error("workflows.execute_failed", {+ error: toErrorFields(error),+ correlation: {+ workflowId: workflow.id,+ },+ });+continue;}}++ await logger.flush();}