Skip to content

Commit

Permalink
fix operator for sql application name
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Oct 30, 2024
1 parent 0cec5bb commit 88f94a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions open_bus_pipelines/operators/cli_bash_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CliBashOperator(BashOperator):

def __init__(self, cmd, **kwargs):
assert not kwargs.get('bash_command')
kwargs['bash_command'] = '_'
super(CliBashOperator, self).__init__(**kwargs)
self.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)" ',
Expand Down

0 comments on commit 88f94a7

Please sign in to comment.