Solved

Clear Out Stuck tasks

  • 11 March 2019
  • 5 replies
  • 10919 views

Userlevel 1
Badge
I have 4 tasks that seem to be stuck in prism central. 3 x vm create and 1 vm disk attach. The vm's were successfully created and same with the vm disk attach. They are just stuck at 50% and no amount of clearing the tasks will get rid of them.

Is there a command to run to clear these out?
icon

Best answer by galad2003 21 March 2019, 13:20

So got the solution from support:

1) ecli task.list include_completed=false
2) ~/bin/ergon_update_task --task_uuid=9 --task_status=aborted
View original

5 replies

Userlevel 1
Badge
So got the solution from support:

1) ecli task.list include_completed=false
2) ~/bin/ergon_update_task --task_uuid=9 --task_status=aborted
Userlevel 5
Badge +8
Hi,
you can try with progress_monitor_cli, first get a list:
code:
progress_monitor_cli --fetchall

then try
code:
progress_monitor_cli --entity_id="< ID >" --delete

Another option is to use ergon_update_task:
code:
ergon_update_task --task_uuid=TASK_ID --task_status=succeeded

(you may need to use the proper task status, see the command help)
Userlevel 7
Badge +35
Hi @galad2003

Did you see the reply from @andrew_ct ? Did it help? if yes, consider clicking the 'best answer' link this will help others find the same info much quicker. Thanks
Userlevel 1
Badge
@aluciani Unfortuantely this did not help. I will pursue this through tech support as time permits.
Userlevel 5
Badge +15
@galad2003 Have you tried to get task UUID:
code:
acli task.list




And then kill it with:
code:
/bin/ergon_update_task --task_uuid=TASK_UUID_HERE --task_status=succeeded 


In previous Andrej's response /bin part was missing in ergon command. Try again I hope it fixes it for you.

Reply