Skip to content

Disable

Disable projections.

disable_projection(stub, name, write_checkpoint=True, **kwargs)

Disables a projection.

Source code in src/eventstore_grpc/projections/disable.py
def disable_projection(
    stub: projections_pb2_grpc.ProjectionsStub,
    name: str,
    write_checkpoint: bool = True,
    **kwargs
) -> projections_pb2.DisableResp:
    """Disables a projection."""
    request = projections_pb2.DisableReq()
    options = projections_pb2.DisableReq.Options()
    options.name = name
    options.write_checkpoint = write_checkpoint
    request.options.CopyFrom(options)
    response = stub.Disable(request, **kwargs)
    return response