Content-Length: 263406 | pFad | https://github.com/apache/airflow/commit/0f717ea5e61f2028e4eafd70105f551ea2b77910

3E removed stale code (#39744) · apache/airflow@0f717ea · GitHub
Skip to content

Commit 0f717ea

Browse files
authored
removed stale code (#39744)
1 parent 49b3871 commit 0f717ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airflow/providers/google/cloud/log/stackdriver_task_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ def emit(self, record: logging.LogRecord) -> None:
180180
"""
181181
message = self.format(record)
182182
ti = None
183-
# todo: remove ctx_indiv_trigger is not None check when min airflow version >= 2.6
184-
if ctx_indiv_trigger is not None and getattr(record, ctx_indiv_trigger.name, None):
183+
if getattr(record, ctx_indiv_trigger.name, None):
185184
ti = getattr(record, "task_instance", None) # trigger context
186185
labels = self._get_labels(ti)
187186
self._transport.send(record, message, resource=self.resource, labels=labels)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/0f717ea5e61f2028e4eafd70105f551ea2b77910

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy