dzitkowskik / mini-dos

Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
Apache License 2.0
0 stars 0 forks source link

Master - Tasks #34

Closed dzitkowskik closed 8 years ago

dzitkowskik commented 8 years ago

Master should register all ongoing tasks and their statuses, we should also be able to query them (see all active tasks) also with history (which tasks failed, which completed successfully). We should also know wchich node is doing which task and so on... It will be helpful for example when we will try to do the task again using different node in case of failure.

davidmigloz commented 8 years ago

Master register all ongoing tasks, their statuses and the node which is doing the task. Pending: query status of the tasks

dzitkowskik commented 8 years ago

Quering taska can be done from master console as one of admin commands. Lets say command will look like that SELECT * FROM tasks;

davidmigloz commented 8 years ago

Query tasks and nodes done:

SELECT * FROM NODES;
> #0: UP (LA 1.47, DB size 3.00KB, Free Mem. 55.01MB)
> #1: UP (LA 1.47, DB size 3.00KB, Free Mem. 43.25MB)

SELECT 0 FROM NODES;
> #0: UP (LA 1.47, DB size 3.00KB, Free Mem. 55.01MB)

SELECT * FROM TASKS;
> #0 (n1): finished
> #1 (n1): aborted
> #2 (n0): finished

SELECT 1 FROM TASKS;
> #1 (n1): aborted