Clear Invalidation Queue Errors

#1

To clear all errors in an invalidation queue, use c3QErrorsClear().
For example, c3QErrorsClear(AnalyticsQueue) will clear all errors in the AnalyticsQueue.

0 Likes

#2

Another approach, focusing on errors directly (instead of status):

function clearQueueErrors(qt) {
    _.each(_.uniq(qt.errors().pluck('errorCode')),
           function(ec) { qt.clear({ errorCode: ec }); });
}

function clearAllQueueErrors() {
    _.each(InvalidationQueue.allQueues().pluck('typeName'),
           function(tn) { clearQueueErrors(c3Type(tn)); });
}
0 Likes