Inheritance diagram for IPython.kernel.taskfc:
A Foolscap interface to a TaskController.
This class lets Foolscap clients talk to a TaskController.
Client class for Foolscap exposed TaskController.
This class is an adapter that makes a RemoteReference to a TaskController look like an actual ITaskController on the client side.
This class also implements IBlockingClientAdaptor so that clients can automatically get a blocking version of this class.
Abort a task by taskid.
Block until a set of tasks are completed.
Clear previously run tasks from the task controller. :Parameters:
- taskids : list, tuple, None
- A sequence of taskids whose results we should drop. if None: clear all results
|Returns :||An int, the number of tasks cleared|
This is needed because the task controller keep all task results in memory. This can be a problem is there are many completed tasks. Users should call this periodically to clean out these cached task results.
Get a task result by taskid.
A TaskResult object that encapsulates the task result.
Apply func to *sequences elementwise. Like Python’s builtin map.
This version is load balanced.
Create an IMapper implementer with a given set of arguments.
The IMapper created using a task controller is load balanced.
See the documentation for IPython.kernel.task.BaseTask for documentation on the arguments to this method.
Get a dictionary with the current state of the task queue.
A dict with the queue status.
Run a task on the TaskController.
See the documentation of the MapTask and StringTask classes for details on how to build a task of different types.
|Parameters :||task : an ITask implementer|
|Returns :||The int taskid of the submitted task. Pass this to get_task_result to get the TaskResult object.|
Touch the scheduler, to resume scheduling without submitting a task.
This method only needs to be called in unusual situations where the scheduler is idle for some reason.
Adapt a TaskController to an IFCTaskController
This class is used to expose a TaskController over the wire using the Foolscap network protocol.