Issue 597 scheduler

This pull request fixes the issue related to sending the same task twice to the same authenticated user under the breadth first option.