Skip to content

Commit 3f781a8

Browse files
authored
Merge pull request #2633 from trycompai/fix/increase-transaction-timeout
fix(db): increase prisma transaction timeout from 30s to 60s
2 parents e4ad361 + 8d1764a commit 3f781a8

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)