vcorelib.task.manager
index
/home/vkottler/src/vkottler/workspace/vcorelib/vcorelib/task/manager.py

A simple task management interface.

 
Classes
       
vcorelib.script.ScriptableMixin(builtins.object)
TaskManager

 
class TaskManager(vcorelib.script.ScriptableMixin)
    TaskManager(resolver: vcorelib.target.resolver.TargetResolver = None) -> None
 
A class for managing concurrent execution of tasks and also interfacing
them via names.
 
 
Method resolution order:
TaskManager
vcorelib.script.ScriptableMixin
builtins.object

Methods defined here:
__init__(self, resolver: vcorelib.target.resolver.TargetResolver = None) -> None
Initialize this task manager.
evaluate(self, tasks: Iterable[str], **kwargs) -> Tuple[List[Tuple[vcorelib.task.Task, vcorelib.target.TargetMatch]], Set[str]]
Iterate over task strings and provide a list of tasks that can be
executed (plus relevant data from matching the target) as well as
the set of tasks that can't be resolved.
execute(self, tasks: Iterable[str], **kwargs) -> Set[str]
Execute some set of provided tasks. Return the tasks that don't get
resolved.
finalize(self, **kwargs) -> None
Register task dependencies while the event loop is running.
prepare_execute(self, tasks: Iterable[str], **kwargs) -> Tuple[Set[str], Callable[[], Coroutine[Any, Any, NoneType]]]
Gather tasks that can and can't be executed to prepare a function that
can execute tasks and also return the task strings that wouldn't be
resolved.
register(self, task: vcorelib.task.Task, dependencies: Iterable[str] = None, target: str = None) -> bool
Register a new task and apply any requested dependencies.
register_to(self, target: str, dependencies: Iterable[str]) -> bool
Register dependencies to a task by name.

Methods inherited from vcorelib.script.ScriptableMixin:
invoked(self, script: pathlib.Path) -> bool
Determine if a script has been invoked or not.
script(self, script: pathlib.Path, method: str, *args, once: bool = True, **kwargs) -> Any
Invoke a script while passing this object reference.

Data descriptors inherited from vcorelib.script.ScriptableMixin:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

 
Data
        BasicCoroutine = typing.Callable[[], typing.Coroutine[typing.Any, typing.Any, NoneType]]