Scheduler

Torsten Bergmann has a Smalltalk block scheduling package at:

MCHttpRepository
      location: 'http://smalltalkhub.com/mc/TorstenBergmann/Scheduler/main'
      user: ''
      password: ''

This has been incorporated into PierToDo version 20 to provide scheduled tasks in Pier.

As an example, this is a report of the history. It is created by the code in its parent:

(PRScheduledTaskExamples newForKernelNamed: 'Pier') reportOfImagesOnPageAt: '/John Borden/Todo/Add a History Report'

When the pre-formatted code was ready to be scheduled and ran, this was ran:

(PRPathLookup start: (PRKernel instanceNamed: 'Pier') root path: '/John Borden/Todo/Add a History Report') automate

The due date and repeat duration are used for scheduling the task. Any errors in syntax would appear in the Smalltalk window.

As another example, here is a report of broken links on the wiki.

One could write much of the code in the wiki task, however that is not searchable by the Smalltalk tools, it seem better to have a class that has methods for each page automation.

Possible Improvements:

  • Seems like the expectation is that tasks will delete themselves instead of having the TaskScheduler delete them. The wiki has no functionality to delete scheduled tasks
  • If the duration or due date are updated, the task does not change
Posted by John Borden at 8 November 2014, 1:39 pm link