node-cron / node-cron

A simple cron-like job scheduler for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task is running twice

DarshanSP19 opened this issue · comments

First when I tried this it was working fine. But after some days it missed some of the execution. So that I've added option recoverMissedExecutions as true as author suggested. After that it's executing twice every time it matches the with cron string.

Anybody faces this Issue?

When we use AWS Elastic Beanstalk with load balance on 2 instances. It running twice or thrice. Can you create something like. meteor-synced-cron npm package

Im having the same issue as @DarshanSP19.

Im thinking that this feature will re-schedule the task, meaning that if its a recurring task (like every x time), you will have the same task running twice or more at the same time.

So it could be useful for 1 time task that were skipped but buggy for recurring tasks.