• I would agree with the process running table. You should segregate the process into separate jobs like Steve and Lowell said. This way the second process will never run, unless the processed flag returns true.

    I would personally avoid using waitfor because there are too many uncertainties.