// Task update their status there, and clients could check the status using a GET /run/... call.
task = handler.handle(task);
}
catch (final Fail e) {
log.warn(String.format("%s %s: failed with message '%s'", name, task, e.getMessage()));
if (task.failures().size() >= NUM_TRIES) {
log.error(String.format("%s %s: Error details:", name, task), e);
log.error(String.format("%s %s: Retries exhausted. Failing.", name, task));
failQueue.put(task);
}
else {