I want to know how I can schedule a dynamic(auto populated data) function to auto run everyday at saved time?
Let\'s say I have a form that once the button is clicke
with nodeJS, Using node-schedule
solved the issue:
start the custom Job:
const campaignId = "MY_CUSTOM_ID"
let job = schedule.scheduleJob(campaignId, '* * * * * *', function () {
console.log('running campaign: ' + campaignId)
})
stop the custom Job:
const campaignId = "MY_CUSTOM_ID"
let current_job = schedule.scheduledJobs[campaignId]
current_job.cancel()