Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Clean up samples resources #923

@parthea

Description

@parthea

Samples presubmits are failing at HEAD with google.api_core.exceptions.ResourceExhausted: 429 Quota limit of logging.googleapis.com/log_sinks_count reached. As an example, see this build log.

It's possible that resources created during the samples test may not be fully cleaned up. For example, see the code below where a resource may not be deleted if an exception is raised when calling delete

# Clean-up the temporary sink.
finally:
try:
logging.Client().sink(sink_name).delete()
except Exception:
pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: loggingIssues related to the googleapis/python-logging API.samplesIssues that are directly related to samples.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions