def METHOD_NAME(self, request, channel_revs):
    tasks = TaskResult.objects.filter(
        channel_id__in=channel_revs.keys(),
        status__in=[states.STARTED, states.FAILURE],
    ).exclude(task_name__in=[apply_channel_changes_task.name, apply_user_changes_task.name])
    return {
        "tasks": tasks.values(
            "task_id",
            "task_name",
            "traceback",
            "progress",
            "channel_id",
            "status",
        )
    }