I think I have found a bug.
I registered a new host. I then created a deploy task against this host. I then delete this host via the webUI.
My task list empties as it should, however if I look at my storage group activity on the dashboard there are still tasks queued:
fcf286d6-a906-418c-a217-703b0ec8d363-image.png
There is no tasks scheduled, queued or checked-in.
Looking at the database I find the following:
a06cf4fd-ee06-4f68-85eb-8efa8d0efde9-image.png
There are tasks still queued for hosts that no longer exist in the host table.
2 fixes needed:
When host is deleted, all currently queued or checked-in tasks should be set to a taskStateID 5 or cancelled
If there are tasks that are not set as canecelled for hosts that do not exist, then these tasks should be cancelled
1 question:
I have 24 queued tasks for hosts that do not exist. I see 4 on the webUI. I assume this is because there are 20 tasks with taskNFSGroupID and taskNFSMemberID set to 0. How do groups that do not exist get marked against a host / task?