Skip to content

Commit

Permalink
add sql application name
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Oct 30, 2024
1 parent db11064 commit 28aa4ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open_bus_pipelines/operators/cli_bash_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class CliBashOperator(BashOperator):

def __init__(self, cmd, **kwargs):
assert not kwargs.get('bash_command')
kwargs['bash_command'] = '{print_dag_run}{pip_install_deps}{STRIDE_VENV}/bin/{cmd}'.format(
kwargs['bash_command'] = '{print_dag_run}{pip_install_deps}{ENV}{STRIDE_VENV}/bin/{cmd}'.format(
ENV=f'SQLALCHEMY_APPLICATION_NAME="{self.task_id}" SQLALCHEMY_APPLICATION_VERSION="$(cat {STRIDE_VENV}/open_bus_pipelines_commit.txt)" ',
STRIDE_VENV=STRIDE_VENV,
cmd=cmd,
print_dag_run=get_print_dag_run(),
Expand Down

0 comments on commit 28aa4ef

Please sign in to comment.