job is canceled when limit is above 50 or the search query has the wrong format