Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

The Suneido Task Scheduler

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:
SchedulerControl()

You should see something like this (without the tasks):

Suneido Task Scheduler

To add new tasks, click on the Add button and fill in the Task Information:

Task Information Window

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:

schedmenu

If any errors occur while a task is running, or if a task does any Print’s, the Scheduler Messages window will come up.

Scheduler Messages

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:

Use("email.lib")

ScheduleControl(exitOnDestroy:)

Then you can run this with a command line like:

suneido email.go

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.

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language