Skip to content

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