2020-12-08から1日間の記事一覧

Node.js node-schedule 実行開始後に実行周期を変える

起動~3秒後までは、毎秒メッセージ出力 3秒たったら3秒ごとの周期に変更(メッセージ出力処理は変わらず) const schedule = require('node-schedule'); var hogehoge = 0; var job = schedule.scheduleJob('* * * * * *', function () { console.log(hogehog…

cron 正時1時間ごと、10分ごとの書式

正時1時間ごとに実行 0 */1 * * * 正時10分ごとに実行 */10 * * * * * * * * * * ┬ ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ | │ │ │ │ │ └ day of week (0 - 7) (0 or 7 is Sun) │ │ │ │ └───── month (1 - 12) │ │ │ └────────── day of month (1 - 31) │ │ └─────────────── …