To me too. It should be "how long was spent on the task", although I doubt it is natural either. Most likely I would say "How long did the task take?" or "how long did it take to complete the task?" We'll have to wait for natives speakers to have their say.
Student or Learner