Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule expireInHours doesn't work #529

Open
Jaarson opened this issue Dec 8, 2024 · 1 comment
Open

Schedule expireInHours doesn't work #529

Jaarson opened this issue Dec 8, 2024 · 1 comment

Comments

@Jaarson
Copy link

Jaarson commented Dec 8, 2024

When I set the schedule below (run every day at 9), the job runs again after the initial run takes longer than 15 minutes, despite setting expireInHours: 6.

The second issue is that I see in the jobs Postgres table expire_in: 00:15:00 and retry_limit: 2.

According to the docs, retryLimit default is 0.

Please help.

  const queueName = 'some-name'
  await boss.createQueue(queueName)
  await boss.schedule(queueName, '0 9 * * *', undefined, { expireInHours: 6 })
  await boss.work(queueName, async () => {
    await doTheJob()
    return true
  })

@danilofuchs
Copy link
Contributor

Perhaps fixed by #523?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants