timer-runner
⏲🧝♂️️a simple, YAML-based configurable timer runner
How To Use
-
Install timer globally
npm i timer-runner -g -
Create timer.yml
name: timerscript: timer-runwatch: ./tasksenv:LOGGER_LEVEL: debugerror_file: ./logs/err.logout_file: ./logs/out.logmerge_logs: truelog_date_format: YYYY-MM-DD HH:mm:ss Z -
Create a list of timer task with yaml in task dir
name: testrule:hour: 2minute: 0dayOfWeek: [0, 1, 2, 3, 4, 5, 6]api:url: https://abc.com/signmethod: postheaders:host: https://abc.comorigin: https://abc.comcontent-type: application/x-www-form-urlencodedcookie: $secretx-requested-with: https://abc.comdata:api_version: 1app_client_id: 1 -
Start the timer with pm2
pm2 start timer.yml