Stuck Active Tasks

I have a metric crap load of tasks just sitting in active but they are not actually active they are super old. Any way to clear this?

ClearActiveTasks.baq (29.6 KB)

I used this one when I get that. I only have one most of the time though, so I donā€™t think my query handles multiple rows, but Iā€™m sure you can figure out how to make it work. :wink:

11 Likes

Thank you!

Thanks @Banderson! I just used this and it is perfect. I had to install it on a newer environment to see what you did. For everyone else, once you have a uBAQ with SysTask (filter by TaskStatus = ā€˜Activeā€™):

  1. Create Custom Action (ā€œDeleteā€ is best)
  2. Add an Advanced BPM to the Base Processing of ā€œRunCustomActionā€
  3. Use the Invoke BO widget with Ice.SysTask.DeleteByID and the configured parameter of queryResultDatasetResultsRow.SysTask_SysTaskNum
  4. Save BPM
  5. Run Get List
  6. In the bottom right of the Analyze tab, select the dropdown for Delete, and click ā€œRun Customā€
4 Likes