Clear failed tasks in InvalidationQueue.countAll()

#1

When doing InvalidationQueue.countAll(), I have a lot of old tasks that have failed in my queue. How can I remove them and reset the count to 0?

Example
AnalyticsQueue enelgen/prod false 0 0 0 0 0 4600 4600

0 Likes

#2

To clear the queue you can run:
AnalyticsQueue.clear() - this will clear the entire queue (including pending, computing, failed). Use sparingly and carefully. c3QErrorsClear(AnalyticsQueue) can be used to clear just the errors.

Note that ClusterAdmin privileges is required to clear queues.

0 Likes