Skip to content

Commit

Permalink
Update airbyte-ci/connectors/base_images/base_images/commands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
natikgadzhi authored Feb 9, 2025
1 parent 5b20d29 commit 2ddd27a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airbyte-ci/connectors/base_images/base_images/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ async def _publish(

async def execute_async_command(command_fn: Callable, *args, **kwargs):
"""This is a helper function that will execute a command function in an async context, required by the use of Dagger."""
# NOTE: Dagger logs using Rich now, and two rich apps don't play well with each other.
# Logging into a file makes the CLI experience tolerable.
async with dagger.Connection(dagger.Config(log_output=open("dagger.log", "w"))) as dagger_client:
await command_fn(dagger_client, *args, **kwargs)

Expand Down

0 comments on commit 2ddd27a

Please sign in to comment.