docs: def calc_info(db, calc_id):
      """
      :param db: a :class:`openquake.server.dbapi.Db` instance
      :param calc_id: calculation ID
      :returns: dictionary of info about the given calculation
      """
      job = db('SELECT * FROM job WHERE id=?x', calc_id, one=True)
      response_data = {}
      response_data['user_name'] = job.user_name
      response_data['status'] = job.status
      response_data['start_time'] = str(job.start_time)
      response_data['stop_time'] = str(job.stop_time)
      response_data['is_running'] = job.is_running
      return response_data