How to execute task only once

I think point 1 of my proposals is what you want, although what @mark said is probably a better first option.