Schedule
pulse.schedule(when, names, data?)
pulse.schedule(when, names, data?)Example Usage
const pulse = new Pulse();
// Schedule a single job to run next Monday at 9 AM
const nextMonday = new Date();
nextMonday.setDate(nextMonday.getDate() + ((1 + 7 - nextMonday.getDay()) % 7 || 7));
nextMonday.setHours(9, 0, 0, 0);
pulse.schedule(nextMonday, 'weeklyMeetingReminder', { meetingId: 456 });
pulse.schedule('tomorrow at noon', [
'printAnalyticsReport',
'sendNotifications',
'updateUserRecords'
]);Parameters
Returns
Last updated