Include inactive tasks when computing job summaries

Currently, the getTasks query was only fetching tasks in active status.
Updated the code to fetching all tasks for getJobSummary.

Testing Done:
Tested on laptop.

Bugs closed: AURORA-338

Reviewed at https://reviews.apache.org/r/20573/