You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I'm missing something very simple here. I am trying to run 2 jobs with this package but only the first one is being run and not the second one. Can we not add jobs by just calling SyncedCron.add multiple times? Like so:
SyncedCron.add({
name: 'Check if 24 hours have elapsed for pending reservations',
schedule: function(parser) {
// parser is a later.parse object
return parser.text('every 15 mins');
},
job: function() {
Meteor.call('checkRes');
}
});
SyncedCron.add({
name: 'Routine transaction processing every 12 hours',
schedule: function(parser) {
// parser is a later.parse object
return parser.text('every 12 hours');
},
job: function() {
checkTransaction();
holdDeposit();
releaseDeposit();
}
});
SyncedCron.start();
The text was updated successfully, but these errors were encountered:
Hi,
I think I'm missing something very simple here. I am trying to run 2 jobs with this package but only the first one is being run and not the second one. Can we not add jobs by just calling
SyncedCron.add
multiple times? Like so:The text was updated successfully, but these errors were encountered: