def METHOD_NAME(self, task_info):
    worker = task_info.get("worker")
    if worker is not None:
        return "%s (%s)" % (task_info["state_label"], worker["name"])
    return "%s" % task_info["state_label"]