Archive of UserLand's first discussion group, started October 5, 1998.

How logging works in scheduler tasks

Author:Dave Winer
Posted:12/18/1998; 1:31:10 PM
Topic:Work on builtins.scheduler
Msg #:1439 (In response to 1434)
Prev/Next:1438 / 1440

If you're running as a task, that is your script is called from a sub-table of user.scheduler.tasks, any elements you add to a special table called "taskInfo" will be included in the log. You can add sub-tables to that table, or outlines, or binary information, whatever you like.

If your script is running as a sub-task of user.scheduler.overnight or user.scheduler.hourly or user.scheduler.everyMinute, you can add information to a special table called "subTaskInfo".

For example, in mainResponder.background.everyMinute, this line tells the reader how many guest databases were saved:

subtaskinfo.ctDatabasesSaved = ctSaves


There are responses to this message:


This page was archived on 6/13/2001; 4:46:44 PM.

© Copyright 1998-2001 UserLand Software, Inc.