Last active
November 21, 2017 17:52
-
-
Save AyoAlfonso/71486ab76e930c830d16dd781dfaa536 to your computer and use it in GitHub Desktop.
Cron-test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
var CronJob = require('cron').CronJob; | |
module.exports = { | |
createCroneJob: function () { | |
new CronJob('* * * * * *', function() { | |
console.log('Hey I will repeat myself every other second!') | |
}, null, true, 'America/Los_Angeles'); | |
}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment