prefect_gcp.utilities
Functions
sanitize_labels_for_gcp
prefect.io/flow-run-id) are replaced
with hyphens. Leading non-letter characters are stripped from keys.
Labels whose keys are empty after sanitization are dropped.
merge_labels_for_gcp
_GCP_LABEL_MAX_COUNT (64) labels
to stay within the Cloud Run limit. When trimming is needed, the
lowest-priority Prefect labels (last in insertion order — e.g.
deployment-updated, worker-name) are dropped first so that core
identifiers like flow-run-id and flow-run-name are preserved.
slugify_name
name: The name of the job
- The slugified job name or None if the slugified name is empty
Classes
Job
Utility class to call GCP jobs API and
interact with the returned objects.
Methods:
create
delete
get
has_execution_in_progress
is_ready
run
Execution
Utility class to call GCP executions API and
interact with the returned objects.
Methods: