@Override public void run() { try { // Updates the bucket assignment counts if (assignBucketCount) { assignmentsRepository.updateBucketAssignmentCount(experiment, assignment, countUp); } } catch (Exception e) { LOGGER.error("Error updating the assignment counts for experiment: ", experiment.getID() + " bucket label: " + assignment.getBucketLabel() + " with exception: ", e); } //The exports table will be written only for not deleted assignments try { // adds an assignment to the user export table if (countUp && assignUserToExport) { assignmentsRepository.assignUserToExports(assignment, date); } } catch (Exception e) { LOGGER.error("Error updating the assignment to the user export for experiment: ", experiment.getID() + " bucket label: " + assignment.getBucketLabel() + " with exception: ", e); } } }