You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2026/07/01 23:13:51 UTC
Re: [PR] Rework `SUPERVISOR_COMMS` class to have log stored as a attribute [airflow]
uranusjr commented on code in PR #66694:
URL: https://github.com/apache/airflow/pull/66694#discussion_r3509540889
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -2085,7 +2085,7 @@ def main():
log = structlog.get_logger(logger_name="task")
global SUPERVISOR_COMMS
- SUPERVISOR_COMMS = CommsDecoder[ToTask, ToSupervisor](log=log)
+ SUPERVISOR_COMMS = CommsDecoder[ToTask, ToSupervisor]()
Review Comment:
It can be `functools.partial(structlog.get_logger, "logger name")` here (with the logger name being the CommsDecoder’s import path)
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org