There is a clash of terminology: the Lagrangian formulation of fluid dynamics follows the path of fluid particles, in contrast to the Eulerian form, which observes the fluid passing by a fixed coordinate system. In general dissipative systems don’t have time-independent Lagrangians.