Skip to content

Commit

Permalink
[CX-16591] Fix regex to work with impersonated clusters like airflow_…
Browse files Browse the repository at this point in the history
…scheduler_ddavydov (apache#42)
  • Loading branch information
aoen authored Apr 14, 2020
1 parent 8ed2c72 commit a68e2b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ def get_local_fileloc(self):
# the path the webserver uses when it tries to trigger a DAG does not match the
# existing scheduler path and the DAG can not be found.
# Also, fix for render code on UI by changing "/code" in views.py
path_regex = "airflow_scheduler-.-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[" \
path_regex = "airflow_scheduler.*-.-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[" \
"0-9a-f]{12}/runs/.*/sandbox/airflow_home"
path_split = re.split(path_regex, self.fileloc)[1]
return os.environ.get("AIRFLOW_HOME") + path_split
Expand Down
2 changes: 1 addition & 1 deletion airflow/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# under the License.
#

version = '1.10.4+twtr7'
version = '1.10.4+twtr8'

0 comments on commit a68e2b3

Please sign in to comment.