use of com.haulmont.cuba.core.global.TimeSource in project cuba by cuba-platform.
the class TaskHandlerImpl method execute.
@Override
public final void execute() {
checkState(!started, "Task is already started. Task: " + taskExecutor.getTask().toString());
this.started = true;
TimeSource timeSource = AppBeans.get(TimeSource.NAME);
this.startTimeStamp = timeSource.currentTimestamp().getTime();
this.watchDog.manageTask(this);
log.trace("Run task: {}. User: {}", taskExecutor.getTask(), getUserSession().getId());
taskExecutor.startExecution();
}
Aggregations