private String baseUrl;
@Scheduled(fixedDelay=10 * DateTimeConstants.MILLIS_PER_SECOND)
public void run() {
try {
TimelineMusicRequest request = dao.getUnprocessedTimelineMusicRequest();
if (request == null) {
return;
}
long start = System.currentTimeMillis();
TimelineMusic music = service.storeUserTimelinePiece(request.getUser());
service.completeRequest(request, start);
sendEmail(music);
} catch (Exception ex) {
logger.error("Problem processing twitter music request", ex);
}