added cool new way to search for tasks, which fixes issues with double-scheduling when running many workers