duplication cron job execution

27 views
Skip to first unread message

Mohit Aggarwal

unread,
May 30, 2021, 12:00:18 AM5/30/21
to LoopbackJS
Hi team,

I have setup a cron job which run every 5 mins.

but when I start the server, onTick() function runs twice in 7 miliseconds and hence creating nuisance. After little research got that trottle from lodash might work but that didn't work too.

Do you have any resolution for the same?

Thanks and regards.
Mohit Aggarwal

Rifa Achrinza

unread,
May 30, 2021, 5:52:07 AM5/30/21
to LoopbackJS
Hi Aggarwal,

Would it be possible to provide the CronJob configuration used (i.e. the code of `new CronJob()`)? This may make it easier for others to replicate the issue.

Best regards,
Rifa Achrinza
Reply all
Reply to author
Forward
0 new messages