Fixed the issue, now pullTasks() doesn't return in-progress jobs