@Override
public Collection<TaskHandle> apply(Collection<QSTaskModel> tasks) {
List<TaskHandle> taskHandles = new ArrayList<TaskHandle>(tasks.size());
for (QSTaskModel task : tasks) {
taskHandles.add(new TaskHandle(task, new QSLogTaskModel(task.batchId, task.taskId, task.handler,
task.params, workerIdService.getWorkerId(), System.currentTimeMillis(), null, null, false)));
}
return taskHandles;
}