Skip to content

Conversation

Ma-Justin
Copy link
Collaborator

To switch in Powershell:

$env:METADATA_STORAGE = "sqlite"
python main.py
$env:METADATA_STORAGE = "mutable_stream"
python main.py

To switch in zsh:

export METADATA_STORAGE=mutable_stream
python main.py

export METADATA_STORAGE=sqlite
python main.py

@gangtao gangtao self-requested a review September 9, 2025 18:49
@gangtao gangtao added the enhancement New feature or request label Sep 9, 2025
# Initialize metadata storage based on configuration
self.use_sqlite = METADATA_STORAGE == "sqlite"

if self.use_sqlite:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code should be moved into method _init_pipeline_metadata

raise
else:
# Initialize mutable stream for metadata (legacy mode)
self.pipeline_stream_name = "synthetic_data_pipelines"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why both setting will use sqlite for metadata, seems the mutable stream based metadata is not here?


db_logger.info(f"Successfully retrieved pipeline: {pipeline_info['name']} (writes: {live_count})")
return pipeline_info
if self.use_sqlite:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this logic should be wrapper in the metadata manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants