Skip to content

Commit

Permalink
Fix broken print in ccdk (#34578)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Jan 26, 2024
1 parent 7fe9b09 commit abe9851
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airbyte-cdk/python/airbyte_cdk/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def launch(source: Source, args: List[str]) -> None:
source_entrypoint = AirbyteEntrypoint(source)
parsed_args = source_entrypoint.parse_args(args)
for message in source_entrypoint.run(parsed_args):
print(message)
# simply printing is creating issues for concurrent CDK as Python uses different two instructions to print: one for the message and
# the other for the break line. Adding `\n` to the message ensure that both are printed at the same time
print(f"{message}\n", end="")


def _init_internal_request_filter() -> None:
Expand Down

0 comments on commit abe9851

Please sign in to comment.