use of org.olat.core.commons.services.taskexecutor.model.PersistentTaskRunnable in project OpenOLAT by OpenOLAT.
the class TaskExecutorManagerImpl method processTaskToDo.
protected void processTaskToDo() {
try {
List<Long> todos = persistentTaskDao.tasksToDo();
for (Long todo : todos) {
PersistentTask task = persistentTaskDao.loadTaskById(todo);
Runnable runnable = persistentTaskDao.deserializeTask(task);
PersistentTaskRunnable command = new PersistentTaskRunnable(todo);
execute(command, null, (runnable instanceof Sequential));
}
} catch (Exception e) {
// ups, something went completely wrong! We log this but continue next time
log.error("Error while executing task todo", e);
}
}
use of org.olat.core.commons.services.taskexecutor.model.PersistentTaskRunnable in project openolat by klemens.
the class TaskExecutorManagerImpl method processTaskToDo.
protected void processTaskToDo() {
try {
List<Long> todos = persistentTaskDao.tasksToDo();
for (Long todo : todos) {
PersistentTask task = persistentTaskDao.loadTaskById(todo);
Runnable runnable = persistentTaskDao.deserializeTask(task);
PersistentTaskRunnable command = new PersistentTaskRunnable(todo);
execute(command, null, (runnable instanceof Sequential));
}
} catch (Exception e) {
// ups, something went completely wrong! We log this but continue next time
log.error("Error while executing task todo", e);
}
}
Aggregations