TaskManager (dpp v0.1.1)
Task manager server that can distribute tasks to servers.
TODO1: Need to make it so that the import is the LIST format, funtion to distribute
Link to this section Summary
Functions
Add more tasks to TaskManager.
Parameters
- collision_data: new calculation tasks that will be added to the task manager
Examples
TaskManager.add_task(tasks)
Returns a specification to start this module under a supervisor.
Get result from server
!TODO Not good idea this one, rewrite
Remove all tasks from TaskManager.
Examples
TaskManager.remove_all_tasks()
Link to this section Functions
Link to this function
add_task(collision_data)
Specs
add_task(List) :: None
Add more tasks to TaskManager.
Parameters
- collision_data: new calculation tasks that will be added to the task manager
Examples
TaskManager.add_task(tasks)
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
get_result()
Specs
get_result() :: None
Get result from server
!TODO Not good idea this one, rewrite
Link to this function
recieve_result(task_id, result)
Link to this function
remove_all_tasks()
Specs
remove_all_tasks() :: None
Remove all tasks from TaskManager.
Examples
TaskManager.remove_all_tasks()
Link to this function
request_task(pid)
Link to this function