Presents an algorithm and a mathematical model for controlling a technological process to minimize losses associated with an emergency in production. The conditions and features of the functioning of the technological process in the conditions of the flow method of performing work are presented. The conditions and schemes of pairing interconnected resources have been deter-mined, which allow their replacement to improve the efficiency of technological process control while observing the technology or organization of construction. Criteria are enclosed that assess the quality of the organisational-economic situation before and after the management of the tech-nological process of management. A matrix of incidents is given, which makes it possible to deter-mine the conditions of an emergency situation, to assess the loss and to make an operative decision about the compensation of these losses, which have arisen during an emergency stop of the pro-cess. The proposed model allows you to vary the parameters, change the search area to achieve the desired results. The model is invariant to the object of technological process control, which allows changing its parameters by adjusting the adjacency and incident matrices.