Use KeepAlive
with PathState key. Create a file when you want to launch your task. Delete that file before returning zero from your helper tool.(Remove RunAtLoad
key)
PathState Each key in this dictionary is a file-system path. If the value of the key is true, then the job will be kept alive as long as the path exists. If false, the job will be kept alive in the inverse condition. The intent of this feature is that two or more jobs may create semaphores in the file-system namespace.