dabla commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2774156067


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -986,24 +1027,28 @@ async def create_triggers(self):
                 # that could cause None values in collections.
                 kw = Trigger._decrypt_kwargs(workload.encrypted_kwargs)
                 deserialised_kwargs = {k: smart_decode_trigger_kwargs(v) for 
k, v in kw.items()}
-                trigger_instance = trigger_class(**deserialised_kwargs)
+
+                if ti := workload.ti:
+                    runtime_ti = create_runtime_ti(workload.dag_data)

Review Comment:
   Changed the logic a bit so it also takes that case into account.



##########
task-sdk/src/airflow/sdk/definitions/mappedoperator.py:
##########
@@ -226,6 +226,13 @@ def _expand(self, expand_input: ExpandInput, *, strict: 
bool) -> MappedOperator:
         task_group = partial_kwargs.pop("task_group")
         start_date = partial_kwargs.pop("start_date", None)
         end_date = partial_kwargs.pop("end_date", None)
+        start_from_trigger = bool(
+            partial_kwargs.get("start_from_trigger", False)
+            or getattr(self.operator_class, "start_from_trigger", False)
+        )
+        start_trigger_args = partial_kwargs.get("start_trigger_args", None) or 
getattr(
+            self.operator_class, "start_trigger_args", None
+        )

Review Comment:
   Fixed



-- 
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]

Reply via email to