Skip to content

Commit

Permalink
Revert optimization attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelblaszczyk5 committed Jan 5, 2024
1 parent 8a6cad7 commit 94fb1cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prisma/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const deployPrismaMigrationsWithRetrying = () => {

if (!isDatabaseUnavailable) throw error;

await tryWakingUpDatabase();

const delayMs = BASE_DELAY * 2 ** currentRetry;
currentRetry += 1;

Expand All @@ -54,5 +56,4 @@ const deployPrismaMigrationsWithRetrying = () => {
return execute();
};

await tryWakingUpDatabase();
await deployPrismaMigrationsWithRetrying();

0 comments on commit 94fb1cb

Please sign in to comment.