submission.getTagName(), submission.getTagCount());
}
protected void updateTags() throws ApplicationException {
resendFailedUpdates();
ArtistUserTag aut;
while (failedUpdates.isEmpty() && (aut = artistUserTags.poll()) != null) {
if ((aut.isIncrease() && aut.getTagCount() >= MAX_THRESHOLD)
|| (!aut.isIncrease() && aut.getTagCount() <= MIN_THRESHOLD)) {
WSResponse wsResponse = tagUpdateClient.updateTag(aut);
if (!wsResponse.wasCallSuccessful()) {
LOG.warn("updating " + aut + " failed! Add for re-sending.");
LOG.debug("Response: " + wsResponse);
failedUpdates.add(aut);