Cron Task Runner
This project is a simple wrapper around the cron
npm package that enables the configuration of cron tasks on a non-admin windows environment.
Features
- Verbose logging the output of the executable.
- Sending a mail using the
mailgun-js
package in case an error occurs.
Setup
- Clone the repository into any location on you machine.
- Create a shortcut from the main node executable (name it
node.lnk
). - Configure the shortcut to use the current directory as the
cwd
. - Create a shortcut for
start.vbs
in the windowsStartup
directory. - Configure the mailgun settings in a copy of the
.env.default
file named.env
. - Configure the tasks to be executed in a copy of the
config.json.default
file namedconfig.json
. - Execute the script
npm run deploy
to build the project. - Execute the script
npm start
to run the task runner.
Maintenace
Regretfully the project does not currently support any way of detection for existing instaces of the task runner. The only method of killing an existing task runner process is to end it in the Task Manager.