Are you looking to automatically halt the integration when it hits a steady state?
https://docs.juliadiffeq.org/latest/types/steady_state_types/
https://docs.juliadiffeq.org/latest/solvers/steady_state_solve/
https://docs.juliadiffeq.org/latest/features/callback_library/#TerminateSteadyState-1