}
public static int changeTaskStatus(String taskName, int newStatus) throws Exception {
Connection connection = DirectTaskDatabaseConnection.getConnection();
synchronized (connection) {
return new TaskProcess(connection).changeTaskStatus(taskName, newStatus);
}
}