The call to ``schedule`` should happen *after* you have called ``setPriority``, and any other additional property you may need to set (oherwise I think there is a chance for a race condition).