Skip to content

Add print_output parameter to allow real time monitoring #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ben-wade-olo
Copy link

@ben-wade-olo ben-wade-olo commented Mar 5, 2025

This addresses something similar to #19.

The current behavior is that if return_output is True, nothing is printed to stdout as replication is occurring. Instead, the logs are returned once at the end.

return_output is True in the Dagster integration, so there is no progress written to stdout until the replication finishes. If something is taking a long time, we have no visibility into what step it is on.

With this PR, if return_output and print_output are both true, we will be able to see sling's progress in stdout in real time.

The if / else statements are a bit counterintuitive (e.g. if return_output and print_output are both false, it still prints), but I wrote it that way to make sure existing behavior doesn't change unless someone uses the new parameter intentionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant