Before revision:  In both models we provide optimal polynomial time two-phase algorithms , which consist of a first phase where jobs are tested, and a second phase where jobs are executed obliviously.
After revision:  In both models we provide optimal polynomial time algorithms following a two-phase strategy , which consist of a first phase where jobs are tested, and a second phase where jobs are executed obliviously.