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.
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ā):
- Create Custom Action (āDeleteā is best)
- Add an Advanced BPM to the Base Processing of āRunCustomActionā
- Use the Invoke BO widget with Ice.SysTask.DeleteByID and the configured parameter of
queryResultDatasetResultsRow.SysTask_SysTaskNum
- Save BPM
- Run Get List
- In the bottom right of the Analyze tab, select the dropdown for Delete, and click āRun Customā
4 Likes