Skip to content

Commit 19c0763

Browse files
authored
chore(webapp): prevent db:seed script hang (#3962)
Currently the `db:seed` script just hangs on success. This PR adds `process.exit(0)` to the finally block after db disconnect so the script exits properly. --------- Co-authored-by: Chris Arderne <chris@trigger.dev>
1 parent 38f2804 commit 19c0763

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Exit db:seed script on success to prevent hanging.

apps/webapp/seed.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ seed()
168168
})
169169
.finally(async () => {
170170
await prisma.$disconnect();
171+
process.exit(0);
171172
});
172173

173174
async function findOrCreateOrganization(

0 commit comments

Comments
 (0)