Year closing BatchJob (or function as you called it) can be run as many times as you wish.
If there are no NEW entries made in Income Statement accounts since the previous run, nothing will be generated. If you added something, entries will be generated to “close” these additions ONLY.