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 2025/07/25 06:33:50 UTC

[PR] Unconditionally disable start_from_trigger [airflow]

uranusjr opened a new pull request, #53744:
URL: https://github.com/apache/airflow/pull/53744

   This is a fixup to #52861. While the fix resolves the issue in RC, the simple flip of conditional creates a log message where it should not appear.
   
   This flips the conditional back (so the log only shows when it should), and adds a separate return statement to unconditionally disable the feature. The start-from-trigger feature is known to not work in 3 (see #48009).


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


Re: [PR] Unconditionally disable start_from_trigger [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #53744:
URL: https://github.com/apache/airflow/pull/53744#issuecomment-3117063985

   ### Backport successfully created: v3-0-test
   
   <table>
                   <tr>
                       <th>Status</th>
                       <th>Branch</th>
                       <th>Result</th>
                   </tr>
                   <tr>
                       <td>✅</td>
                       <td>v3-0-test</td>
                       <td><a href="https://github.com/apache/airflow/pull/53750"><img src="https://img.shields.io/badge/PR-53750-blue" alt="PR Link"></a></td>
                   </tr>
               </table>


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


Re: [PR] Unconditionally disable start_from_trigger [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #53744:
URL: https://github.com/apache/airflow/pull/53744#discussion_r2230518722


##########
airflow-core/src/airflow/models/mappedoperator.py:
##########
@@ -72,13 +72,18 @@ def expand_start_from_trigger(self, *, context: Context, session: Session) -> bo
 
         :meta private:
         """
-        if not self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
+        if self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
             log.warning(
                 "Starting a mapped task from triggerer is currently unsupported",
                 task_id=self.task_id,
                 dag_id=self.dag_id,
             )
-            return False
+

Review Comment:
   We should write a warning message here.



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


Re: [PR] Unconditionally disable start_from_trigger [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr merged PR #53744:
URL: https://github.com/apache/airflow/pull/53744


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


Re: [PR] Unconditionally disable start_from_trigger [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #53744:
URL: https://github.com/apache/airflow/pull/53744#discussion_r2230626190


##########
airflow-core/src/airflow/models/mappedoperator.py:
##########
@@ -72,13 +72,18 @@ def expand_start_from_trigger(self, *, context: Context, session: Session) -> bo
 
         :meta private:
         """
-        if not self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
+        if self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
             log.warning(
                 "Starting a mapped task from triggerer is currently unsupported",
                 task_id=self.task_id,
                 dag_id=self.dag_id,
             )
-            return False
+

Review Comment:
   No, if start_from_trigger is false, this should just return false without anything happening. It is expected and as initially designed and should not produce a warning.



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


Re: [PR] Unconditionally disable start_from_trigger [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #53744:
URL: https://github.com/apache/airflow/pull/53744#discussion_r2230640538


##########
airflow-core/src/airflow/models/mappedoperator.py:
##########
@@ -72,13 +72,18 @@ def expand_start_from_trigger(self, *, context: Context, session: Session) -> bo
 
         :meta private:
         """
-        if not self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
+        if self.partial_kwargs.get("start_from_trigger", self.start_from_trigger):
             log.warning(
                 "Starting a mapped task from triggerer is currently unsupported",
                 task_id=self.task_id,
                 dag_id=self.dag_id,
             )
-            return False
+

Review Comment:
   Ah ... right. I was mislead by the TODO comment (and obviously missed the warning above)



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