Skip to content

Commit 8d1764a

Browse files
tofikwestclaude
andcommitted
fix(db): increase prisma transaction timeout from 30s to 60s
Customers were unable to complete organization creation when the underlying transaction exceeded 30s. Bump the default transactionOptions.timeout across all Prisma clients (and the migrate-policies-for-org trigger) to 60s to unblock onboarding while the slow work is investigated separately. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e4ad361 commit 8d1764a

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/api/prisma/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createPrismaClient(): PrismaClient {
2222
return new PrismaClient({
2323
adapter,
2424
transactionOptions: {
25-
timeout: 30000,
25+
timeout: 60000,
2626
},
2727
});
2828
}

apps/api/src/trigger/tasks/onboarding/migrate-policies-for-org.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const migratePoliciesForOrg = schemaTask({
108108

109109
return { migrated, skipped };
110110
},
111-
{ timeout: 30000 },
111+
{ timeout: 60000 },
112112
);
113113

114114
totalMigrated += result.migrated;

apps/app/prisma/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createPrismaClient(): PrismaClient {
2222
return new PrismaClient({
2323
adapter,
2424
transactionOptions: {
25-
timeout: 30000,
25+
timeout: 60000,
2626
},
2727
});
2828
}

apps/framework-editor/prisma/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createPrismaClient(): PrismaClient {
2222
return new PrismaClient({
2323
adapter,
2424
transactionOptions: {
25-
timeout: 30000,
25+
timeout: 60000,
2626
},
2727
});
2828
}

apps/portal/prisma/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createPrismaClient(): PrismaClient {
2222
return new PrismaClient({
2323
adapter,
2424
transactionOptions: {
25-
timeout: 30000,
25+
timeout: 60000,
2626
},
2727
});
2828
}

packages/db/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createPrismaClient(): PrismaClient {
2222
return new PrismaClient({
2323
adapter,
2424
transactionOptions: {
25-
timeout: 30000,
25+
timeout: 60000,
2626
},
2727
});
2828
}

0 commit comments

Comments
 (0)