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

"mongoose": "^8.0.4" and "agenda": "^5.0.0", getting error #1572

Open
reetu40 opened this issue Feb 2, 2024 · 2 comments
Open

"mongoose": "^8.0.4" and "agenda": "^5.0.0", getting error #1572

reetu40 opened this issue Feb 2, 2024 · 2 comments

Comments

@reetu40
Copy link

reetu40 commented Feb 2, 2024

@OmgImAlexis @snyk-bot I m trying to add the agenda in my Node js application with Node 20 and mongoose 8
"agenda": "^5.0.0",
"mongoose": "^8.0.4"
I am not able to execute the Agenda Job its always locked

@aarontravass
Copy link

Maybe try setting defaultLockLifetime. See

const agenda = new Agenda({
  db: { address: MONGO_DB_CONNECTION_STRING, collection: undefined },
  ensureIndex: true,
  defaultLockLifetime: 1000 * 60 * 3 // 3 minutes
});

@code-xhyun
Copy link

This project is no longer managed, so I'm making something new and working on it.
Check this out 🔥 > pulse

@reetu40 @aarontravass

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

3 participants