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

[Mongo] Multiple Job documents from a single job #189

Open
cescoferraro opened this issue Aug 9, 2018 · 1 comment
Open

[Mongo] Multiple Job documents from a single job #189

cescoferraro opened this issue Aug 9, 2018 · 1 comment

Comments

@cescoferraro
Copy link
Contributor

I have used Kala before with Redis. Perfect! Thanks Guys! But on this specific project I would like to use the new Mongo Driver since this project already have a MongoDB within its infrastructure.

The following commands happen to create multiple documents to the same job
The tasks seem to run nicely, but I am afraid this multiple documents will bloat up my database

$ kala run --jobDB=mongo --jobDBAddress=xxxxx.domain.live --jobDBUsername=admin --jobDBPassword=pass

$ http http://127.0.0.1:8000/api/v1/job/ name=test_job command="touch lol" schedule=R0/2018-08-09T09:57:30-07:00/P

Fresh Database with a single command creates 8 documents

mongokala

@cescoferraro cescoferraro changed the title [Mongo] Multiple Job documents from a single taks [Mongo] Multiple Job documents from a single job Aug 9, 2018
@sekar-fa
Copy link

@cescoferraro It's issue with the storage/mongo in the Save() instead of using Upsert it is using Insert().
Please let me know if you are still using kala.

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