The Suneido Task Scheduler is similar to the Windows Scheduled Tasks. Some of the things we use it for:
- nightly online backups
- run automated tests nightly
- email staff with weekly reminders about client birthdays and anniversaries
- distribute Suneido mailing list messages every 5 minutes
- fetch Suneido download registration emails, update our database, and send thank you emails
- You can start the scheduler from the WorkSpace by running:
You should see something like this (without the tasks):
To add new tasks, click on the Add button and fill in the Task Information:
You can edit a task by selecting it in the list and choosing Edit. To disable a task, check the Suspend Task checkbox. Or to delete a task completely, select it and choose Remove.
You can minimize the Task Scheduler to a taskbar icon using the Minimize button. When the scheduler is running as a taskbar icon, you can restore the window by double clicking on the icon, or access several options by single or right clicking on the icon:
If any errors occur while a task is running, or if a task does any Print’s, the Scheduler Messages window will come up.
You can leave the message window open, or if you close it, it will be re-opened if there are new messages.
To run the Scheduler from the command line (or Windows Startup) you can create a “go” file. For example, if you create a file called “email.go” like:
Then you can run this with a command line like:
If you are running the Scheduler standalone, it’s important to give the exitOnDestroy: argument so if you exit from the Scheduler it will exit from Suneido.