def METHOD_NAME(self, session, entities, event):
    if event["data"].get("values"):
        return
    title = "Select jobs to kill"
    jobs = session.query(
        "select id, user_id, status, created_at, data from Job"
        " where status in (\"queued\", \"running\")"
    ).all()
    if not jobs:
        return {
            "success": True,
            "message": "Didn't found any running jobs"
        }
    # Collect user ids from jobs
    user_ids = set()
    for job in jobs:
        user_id = job["user_id"]
        if user_id:
            user_ids.add(user_id)
    # Store usernames by their ids
    usernames_by_id = {}
    if user_ids:
        users = session.query(
            "select id, username from User where id in ({})".format(
                self.join_query_keys(user_ids)
            )
        ).all()
        for user in users:
            usernames_by_id[user["id"]] = user["username"]
    items = []
    for job in jobs:
        try:
            data = json.loads(job["data"])
            description = data["description"]
        except Exception:
            description = "*No description*"
        user_id = job["user_id"]
        username = usernames_by_id.get(user_id) or "Unknown user"
        created = job["created_at"].strftime('%d.%m.%Y %H:%M:%S')
        label = "{} - {} - {}".format(
            username, description, created
        )
        item_label = {
            "type": "label",
            "value": label
        }
        item = {
            "name": job["id"],
            "type": "boolean",
            "value": False
        }
        if len(items) > 0:
            items.append({"type": "label", "value": "---"})
        items.append(item_label)
        items.append(item)
    return {
        "items": items,
        "title": title
    }