Skip to content

Commit f0d1918

Browse files
authored
Merge pull request #2 from topcoder-platform/pm-2539
chore(PM-2539): added timeout for prisma service
2 parents f3e1b7d + 5854392 commit f0d1918

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ workflows:
6868
branches:
6969
only:
7070
- develop
71+
- pm-2539
7172

7273
# Production builds are exectuted only on tagged commits to the
7374
# master branch.

src/shared/modules/global/prisma.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export class PrismaService
1212

1313
constructor(private readonly prismaErrorService?: PrismaErrorService) {
1414
super({
15+
transactionOptions: {
16+
timeout: process.env.GROUPS_SERVICE_PRISMA_TIMEOUT
17+
? parseInt(process.env.GROUPS_SERVICE_PRISMA_TIMEOUT, 10)
18+
: 10000,
19+
},
1520
log: [
1621
{ level: 'query', emit: 'event' },
1722
{ level: 'info', emit: 'event' },

0 commit comments

Comments
 (0)