Comments (3)
Hi @darkterra, do you have any idea on how we should fix this, I can help but maybe this is a big change.
from mongo-scheduler.
Hello @dfliess,
There is no error in the operation of the Mongo Scheduler More module.
By default, MSM queries the database every 60 sec (60000 mili sec) to see if there are any events to trigger.
This condition "cron": * 41 18 * * 3
is true every second on day number 3 (Wednesday) at 18:41.
So with the default conf and your condition "cron" you have ~ 59 chances out of 60 to have two times a trigger of the same event.
If you change the poolInterval
at 1000, you get ~60 time the same events.
By cons, if you add to your condition "cron" the seconds, ex: 0 41 18 * * 3
at this time you will be 100% chance that the event is trigger only once.
FYI, I invite you to see more about cron and module cron-parser.
from mongo-scheduler.
HI @darkterra you are right, that's a good way to fix my issue. thanks!
from mongo-scheduler.
Related Issues (14)
- the options [doNotFire] is not supported HOT 3
- MongoAtlas Error HOT 3
- Wrong id used on remove HOT 6
- Undocumented event options HOT 2
- CRON Usage HOT 5
- scheduler.list() query filter not working.
- list() method not returning events HOT 3
- Test Gretting Action
- (Feature) Add support for Query Selectors in event.query objects HOT 6
- Adding new events is always overriding old ones HOT 1
- Removing a single event by id is not possible. HOT 4
- Feature request: sort scheduler.list results by event date. HOT 3
- Events with the same time are overriding each other. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo-scheduler.