Utility class that provides an API for managing
This is an internal utility used by DeepSee.
Name of system used to talk to agents.
Timeout value (seconds) for events. If no events are received, then the agent will shut itself down.
- NOT IMPLEMENTED - Agents are always available and created as needed. There is no need to test anymore.
Look up a token to reattach to a given WorkMgr queue. After successfully serializing a WorkMgr instance, through either attachment to a pre-existing queue or initialization of a new queue, the storage location for the provided pQueueName is marked with the null string to provide an indication the queue is currently open and working.
Determine which work queue a task should be assigned to.
- NOT IMPLEMENTED - The agents global is no longer used.
This is called as the callback to %ExecuteTask which cleans up the management global. This method will also close out the WorkQ if the group was create with pWait = 0.
- NOT IMPLEMENTED - This is handled by the WorkQMgr as part of task queueing operations
Initialization of a %SYSTEM.WorkMgr instance.
This is called in %ExecuteTask to mark the task "active" in the process logging.
Close down all work being done by this task group
Detach from a given WorkMgr queue and store the current token needed to reattach. If the storage location has been deleted before detaching from the queue (eg: by a cancellation operation), then the token is discarded.
This is run by the worker and will do the actual work of processing tasks via the work queue manager
WorkQ agents will be made available as needed. This test always returns True
Find all open WorkQ manager instances and shut them down
Kill the agent log.
This performs the actual cleanup work to remove all tasks assigned to a particular logical work group.
Log a message to the agent log.
Print list of active tasks out to the console.
Print list of agents out to the console.
Print contents of the (global-based) agent log to the console.
Print list of pending (queued) tasks out to the console.
Print current task groups to the console.
This is called from the foreground to add a task to the queue of background tasks.
pTaskGroup must be defined in order to properly assign individual tasks to a particular work queue.
Reset the WorkMgr.
This stops all running agents, clears out all tasks, and clears the logs.
Turn on logging for the DeepSee background agents. These will be reset during a call to
Perform simple test of DeepSee WorkMgr. This will kill any pending task.
Wrapper for the WorkQMgr:WaitForComplete() that parallels the original %DeepSee.TaskMaster version.