potiuk commented on code in PR #25161:
URL: https://github.com/apache/airflow/pull/25161#discussion_r936584448
##########
airflow/executors/local_executor.py:
##########
@@ -78,14 +79,17 @@ def execute_work(self, key: TaskInstanceKey, command:
CommandType) -> None:
self.log.info("%s running %s", self.__class__.__name__, command)
setproctitle(f"airflow worker -- LocalExecutor: {command}")
- if settings.EXECUTE_TASKS_NEW_PYTHON_INTERPRETER:
- state = self._execute_work_in_subprocess(command)
- else:
- state = self._execute_work_in_fork(command)
-
- self.result_queue.put((key, state))
- # Remove the command since the worker is done executing the task
- setproctitle("airflow worker -- LocalExecutor")
+ with _airflow_parsing_context_manager(
+ AirflowParsingContextType.TASK_EXECUTION, dag_id=key[0],
task_id=key[1]
+ ):
Review Comment:
OK. I see where I made the mistake
--
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]