potiuk commented on PR #23052:
URL: https://github.com/apache/airflow/pull/23052#issuecomment-1108780284
I think the "exec" command has been "lost" during rebase :) - I removed all
commands from the `breeze.py` so when you rebased, it has been removed during
conflict resolution.
You need to re-add it :). I copied some changes from the previous version
below:
```
],
},
],
"breeze exec": [
{"name": "Drops in the interactive shell of active airflow
container"},
],
@main.command(name='exec', help='Joins the interactive shell of running
airflow container')
@option_verbose
@option_dry_run
@click.argument('exec_args', nargs=-1, type=click.UNPROCESSED)
def exec(verbose: bool, dry_run: bool, exec_args: Tuple):
container_running = find_airflow_container(verbose, dry_run)
cmd_to_run = [
"docker",
"exec",
@@ -1510,14 +1507,17 @@ def exec(verbose: bool, dry_run: bool,
exec_args: Tuple):
if exec_args:
cmd_to_run.extend(exec_args)
process = run_command(
cmd_to_run,
verbose=verbose,
dry_run=dry_run,
check=False,
no_output_dump_on_exception=False,
text=True,
)
if not process:
sys.exit(1)
sys.exit(process.returncode)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]