def task_status(task_id)
      current_path = "/api/v1/wip/task/#{task_id}/status"
      res = @conn.get(current_path)
      raise InvalidDataError, "No wip task returned for task id #{task_id}" if res['wip_task'].nil?
      raise InvalidDataError, "No task status returned for task id #{task_id}" if res['wip_task']['status'].nil?

      res['wip_task']['status']
    end
def task_status(task_id)
      current_path = "/api/v1/wip/task/#{task_id}/status"
      res = @conn.get(current_path)
      raise InvalidDataError, "No wip task returned for task id #{task_id}" if res['wip_task'].nil?
      raise InvalidDataError, "No task status returned for task id #{task_id}" if res['wip_task']['status'].nil?

      res['wip_task']['status']
    end
Get the status of a wip task by id.
 @param [Integer] task_id
 @return [Hash{"wip_task" => {"id" => Integer, "status" => Integer}, "time" => timestamp}]