Skip to content

hsfs.core.online_ingestion #

OnlineIngestion #

Metadata object used to provide Online Ingestion information for a feature group.

This class encapsulates the state and results of an online ingestion operation, including progress tracking and log retrieval.

id property #

id: int | None

Get the unique identifier for the ingestion operation.

num_entries property writable #

num_entries: int | None

Get the total number of entries to ingest.

results property #

Get the list of ingestion results.

feature_group property #

feature_group: fg_mod.FeatureGroup

Get the feature group associated with this ingestion.

refresh #

refresh()

Refresh the state of this OnlineIngestion object from the backend.

wait_for_completion #

wait_for_completion(options: dict[str, Any] = None)

Wait for the online ingestion operation to complete, displaying a progress bar.

PARAMETER DESCRIPTION
options

Options for waiting. - "timeout" (int): Maximum time to wait in seconds (default: 60). - "period" (int): Polling period in seconds (default: 1).

TYPE: dict[str, Any] DEFAULT: None

RAISES DESCRIPTION
Warning

If the timeout is exceeded before completion.

print_logs #

print_logs(priority: str = 'error', size: int = 20)

Print logs related to the online ingestion operation from OpenSearch.

PARAMETER DESCRIPTION
priority

Log priority to filter by (default: "error").

TYPE: str DEFAULT: 'error'

size

Number of log entries to retrieve (default: 20).

TYPE: int DEFAULT: 20