My DoOnce node is not working

DoOnce definitely works. It must be the way you’ve coded it.

If you have put the DoOnce in a widget, but you’re creating a new widget, then of course, it will run again…