Added deployment id query option to task queries