The seedbox.process.manager
Module¶
Manages the execution of tasks using parallel processes.
-
class
seedbox.process.manager.
TaskManager
¶ Bases:
object
Creates a pool of processes
Executes the supplied tasks using the process pool.
-
add_tasks
(tasks)¶ Adds tasks to list of tasks to be executed.
Parameters: tasks – a task or list of tasks to add to the list of tasks to execute
-
run
()¶ Executes the list of tasks.
Returns: the result/output from each tasks Return type: list
-
shutdown
()¶ Shuts down the process pool to free up resources.
-