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

POST to /job/every consistently 'overwrites' last job instance with same name #92

Open
sfny opened this issue Aug 15, 2020 · 1 comment

Comments

@sfny
Copy link

sfny commented Aug 15, 2020

Hi, I've setup agenda-rest after a year using agenda in a monorepo. For some reason, when I post to /job/every instead of creating a new job in the db, the most recent job is removed and a new job is created with a new mongo _id.

I first noticed it in my app, but I've replicated the behavior with postman and I'm now pretty sure I've isolated it to the agenda-rest app I have running on heroku.

What am I doing wrong? Missing parameter? Uniqueness issue? Seems like it could be an issue with the job definition but there's not much to mess up there.

Any help would be much appreciated!

@Jaykingamez
Copy link

Jaykingamez commented Aug 23, 2022

image
It seems that is agenda's default behaviour

There are ways to circumvent it, look at this

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

No branches or pull requests

3 participants