def METHOD_NAME(ids):
    halted_workflows = (
        db.session.query(WorkflowObjectModel.id)
        .filter(
            WorkflowObjectModel.status == ObjectStatus.HALTED,
            WorkflowObjectModel.id.in_(ids),
        )
        .all()
    )
    return halted_workflows