This Yagya that you have described in your question is a Yogi’s Yagya. There is a Yagya for householders as well as the jyāni (the learned/ scholars). The form of Yagya changes depending on the spiritual aspirant. For a devotee, the definition of Yagya is different to a normal worldly person. However, overall the well-being of all relies on Yagya as God has said in Gita:
Sahayajñāh prajāḥ sṛṣṭvā purovāca prajāpatiḥ
Anena prasaviṣyadhvameṣa vo’stviṣṭakāmadhuk Gita 3.10.
Meaning: at the beginning, when the creator Prajāpati created living beings with sacrifice (Yagya)and said, “By this, shall you propagate; let this fulfil all your requirements for the sacrifice (Yagya)”.
This Yagya, mentioned in this verse, is to fulfil your desires. Will it fulfil all your desires?
Iṣṭakāmadhuk, meaning, it will fulfil those desires which lead to your well-being. A mother does not give her child everything it asks for. Not giving something that is not for the welfare of the child is a mother’s grace.