count + " distributed instances running (limit "+maxInstances+ ")");
}
//Manually insert ActiveProcess entry while distributed data structure
//is still locked.
ProcessStartLogItem logItem = new ProcessStartLogItem();
logItem.setGuid(process.getGuid());
logItem.setHostname(process.getHostname());
logItem.setResponderGuid(process.getResponder().getTaskTypeGuid());
logItem.setTimestamp(process.getLastSeen().getTime());
logItem.setType(process.getType().name());
processLogDao.log(logItem);
// Also add task to the distributed task list, again while still locked
activeProcessDao.updateProcess(process);