Missing possibility to delete several tasks
-
@pmonstad the search page shouldn’t have had the delete function at all. That was removed as it was unintentionally displayed. The active tasks page, active multicast, active snapins, and active scheduled tasks should have the button but I assure ou this is handled by JavaScript. This is not a bug I created but rather a bug in how your particular system is loading the JavaScript file. I don’t know how differently I can tell this too you. Will you please load the console in the browser so I can better help you.
-
@Tom-Elliott I’ll check out tomorrow at work.
-
@Tom-Elliott I have tested in my browser console and there are no errors showing up. I run very latest versions of both Chrome and Firefox, on Windows 7. Tested on two different computers, both which I have used for years with FOG gui without trouble.
There is no button under the task list to delete selected tasks and there is no delete icon to the right in the task list.
-
@pmonstad Dude, I don’t care if you’ve been running fog since the age of time. Right now, it isn’t loading the delete button because something isn’t loaded with javascript. The file fog.task.js should be present, which it sounds like it is missing.
You can only delete tasks from the active pages (by delete I really mean cancel). Do you see the checkboxes?
Under the “console” you also have elements so you can view the source. If you scroll near the bottom is the fog.task.js file loaded?
-
@Tom-Elliott Here are two scree shots showing top and bottom og the screen. There is no way I can delete/cancel tasks.
I have checked the console and this is the last script loaded: <script src=“js/fog/fog.task.js?ver=36” language=“javascript” type=“text/javascript” defer=“”></script>
-
Why is there so many tasks? Is the fact that you’re not seeing the “button” due to the fact that it’s below the browser expected information?
-
@Tom-Elliott I don’t know if there is a limit.There is no scroll bar and I can see the footer in the bottom. Why so many tasks? Because I have chosen to deploy a group of hosts. I guess this is a quite common scenario, deploying 20-30 hosts? The missing delete button does not appear of I do a filter to increase the number of filtered tasks.
-
@pmonstad It’s not uncommon to have a bunch of tasks, I was just wondering if those were actually intentional.
Usually I see around 10-20 tasks as normal, but that doesn’t mean you won’t have more. I am just asking in hopes of a direction to see the button.
-
@Tom-Elliott Hi Tom. Is there a dirty way to cancel/get rid of those tasks? I can try to sort out when the button disappears if I can build a smaller task list
-
@pmonstad There is.
mysql use fog update tasks set taskStateID=5 where (taskStateID=1 or taskStateID=2 or taskStateID=3);
What that does is sets tasks that are queued, checked in, or in progress to cancelled.
-
@Wayne-Workman Thanks!
I started over again to see if I could find a way around, and I did:
Now I have one active task, a host waiting for deploy. The delete button is missing. I managed to get the missing button available by doing this:- One active task (waiting for deploy)
- Hit the Pause auto update button
- Then hit the menu Active Tasks again. Now the delete button is visible in the bottom of the screen
I hope this can help you Tom sorting this out.
-
@Wayne-Workman You can simplify the statement to cancel all tasks with:
UPDATE `fog`.`tasks` SET `taskStateID`=5 WHERE `taskStateID` IN (0,1,2,3);
-
I don’t know if this is fixed but I am hoping so. I moved the cancel button to outside the checker that defines if it should show or not the cancel button to begin with.
-
I marked it as solved. If the OP still has issues, he can mark it as unsolved.
-
There is still a problem when I try to cancel one or more tasks. The button is now available and I can cancel a task the first time I enter Task Management. If I try to to more than one cancel nothing happens if I hit the cancel button. Works first time only.
-
@pmonstad I run svn 5676
-
Moving back to unsolved, because there is still an issue. Button exists but only first time works.
-
I’ve done more work and basically rewrote the js file and how it presents these buttons. Please let me know if it is good now.
-
@Tom-Elliott Now it works as expected. Thanks!