Open suryaiiit opened 7 years ago
You have a classic job dependency here. Sounds like you don't really want a delay of 5 (or whatever) minutes, you simply want job2 to wait until job1 is successfully finished. See:
https://github.com/vsivsi/meteor-job-collection#jobdependsdependencies---anywhere
oh thats cool, will try that.
Sorry, my bad I should have thoroughly checked the documentation.
Hi,
I'm trying to create two jobs, one which loads the data (rss-feeds) and the second one filters the data. As rss-feeds takes some time I'm thinking of giving a gap/delay of 5mins, but I'm not able to achieve this with .delay();
One:
Two:
I even tried enclosing the entire Two code in setTimeout of 5mins, but even that dint work. Please suggest. Thanks.