stale[bot] closed pull request #2543: [AIRFLOW-351] fix bug with stop operator
URL: https://github.com/apache/incubator-airflow/pull/2543
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/models.py b/airflow/models.py
index d83bc9a73d..a15ac32752 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -3408,7 +3408,7 @@ def sub_dag(self, task_regex, include_downstream=False,
upstream and downstream neighbours based on the flag passed.
"""
- dag = copy.deepcopy(self)
+ dag = copy.copy(self)
regex_match = [
t for t in dag.tasks if re.findall(task_regex, t.task_id)]
diff --git a/airflow/task_runner/bash_task_runner.py
b/airflow/task_runner/bash_task_runner.py
index b73e25818d..583834bdc0 100644
--- a/airflow/task_runner/bash_task_runner.py
+++ b/airflow/task_runner/bash_task_runner.py
@@ -37,3 +37,4 @@ def terminate(self):
def on_finish(self):
super(BashTaskRunner, self).on_finish()
+ self.process.kill()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services