Skip to content

Commit 7b382be

Browse files
committed
fix workflow; update attempts number
1 parent 8695dfe commit 7b382be

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/deploy-queue.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ jobs:
2121
username: ${{ secrets.DO_USERNAME }}
2222
key: ${{ secrets.DO_SSH_KEY }}
2323
script: |
24+
export NVM_DIR="$HOME/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; nvm use 20
2425
cd ${{ secrets.APP_DIR }}
25-
export NVM_DIR="$HOME/.nvm"
26-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
27-
nvm use 18
2826
git pull
2927
npm i --legacy-peer-deps
3028
npm run build

src/lib/queue/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const queueOptions = {
4444
// For Vercel, we need to provide Redis options rather than just the URL
4545
redis: redisUrl,
4646
defaultJobOptions: {
47-
attempts: 5, // Retry failed jobs 5 times
47+
attempts: 20, // Retry failed jobs 10 times
4848
backoff: {
4949
// Exponential backoff strategy
5050
type: "exponential",

src/lib/queue/email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const queueEmailBatch = async (
8888
const jobs = await Promise.all(
8989
dataArray.map((data) =>
9090
emailQueue.add(data, {
91-
attempts: 5,
91+
attempts: 20,
9292
backoff: {
9393
type: "exponential",
9494
delay: 10000,

0 commit comments

Comments
 (0)