Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-05 Thread via GitHub
tirkarthi commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2040960545 Related : https://github.com/apache/airflow/pull/31808 https://github.com/apache/airflow/issues/31718 -- This is an automated message from the Apache Git Service. To respo

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-08 Thread via GitHub
uranusjr commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2042181174 I wonder if we could somehow infer `starts_execution_from_triggerer` from the combination of other arguments, instead of setting the flag explicitly. -- This is an automated message

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-08 Thread via GitHub
Lee-W commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2042328464 > I wonder if we could somehow infer `starts_execution_from_triggerer` from the combination of other arguments, instead of setting the flag explicitly. For this specific case, I wou

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-09 Thread via GitHub
uranusjr commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2044338249 If we also infer `starts_execution_from_triggerer` from it, `start_trigger` is not so bad to me, and actually better than `trigger` because it more clearly describes the attributes con

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-10 Thread via GitHub
Lee-W commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2047292509 I have encountered a [has-type] mypy issue. Has anyone faced something similar before and have any suggestions? Thank you. https://github.com/apache/airflow/assets/5144808/bf5a22d1-

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-10 Thread via GitHub
Lee-W commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2047289208 In the current design, I introduced `start_trigger` and `next_method` to the `BaseOperator`. When `start_trigger` is not `None`, the scheduler will call the `defer_task` method of the tas

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-18 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571829890 ## airflow/decorators/base.py: ## @@ -509,6 +509,9 @@ def _expand(self, expand_input: ExpandInput, *, strict: bool) -> XComArg: # task's expand() contr

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-18 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571831966 ## airflow/models/baseoperator.py: ## @@ -1691,6 +1693,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-18 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571831512 ## airflow/models/baseoperator.py: ## @@ -1072,6 +1072,8 @@ def __init__( if SetupTeardownContext.active: SetupTeardownContext.update_context_m

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-18 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571832173 ## airflow/models/baseoperator.py: ## @@ -1691,6 +1693,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571987070 ## airflow/models/baseoperator.py: ## @@ -1691,6 +1693,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571987975 ## airflow/models/baseoperator.py: ## @@ -1691,6 +1693,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1571990864 ## airflow/models/baseoperator.py: ## @@ -1072,6 +1072,8 @@ def __init__( if SetupTeardownContext.active: SetupTeardownContext.update_context_map(

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1572048134 ## airflow/decorators/base.py: ## @@ -509,6 +509,9 @@ def _expand(self, expand_input: ExpandInput, *, strict: bool) -> XComArg: # task's expand() contribu

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
eladkal commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2066199167 > For some operators such as S3KeySensor with deferrable set to True, running execute method in workers might not be necessary. How would that work in case user uses `soft_fail`?

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1572203632 ## airflow/models/baseoperator.py: ## @@ -1072,6 +1072,8 @@ def __init__( if SetupTeardownContext.active: SetupTeardownContext.update_context_m

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1572203632 ## airflow/models/baseoperator.py: ## @@ -1072,6 +1072,8 @@ def __init__( if SetupTeardownContext.active: SetupTeardownContext.update_context_m

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1572255021 ## airflow/models/baseoperator.py: ## @@ -1072,6 +1072,8 @@ def __init__( if SetupTeardownContext.active: SetupTeardownContext.update_context_map(

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2066635766 > > For some operators such as S3KeySensor with deferrable set to True, running execute method in workers might not be necessary. > > How would that work in case user uses `soft_fai

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-19 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1572436018 ## airflow/decorators/base.py: ## @@ -509,6 +509,9 @@ def _expand(self, expand_input: ExpandInput, *, strict: bool) -> XComArg: # task's expand() contribu

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-22 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1574405076 ## airflow/decorators/base.py: ## @@ -509,6 +509,9 @@ def _expand(self, expand_input: ExpandInput, *, strict: bool) -> XComArg: # task's expand() contribu

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-22 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1575701802 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-22 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1575716908 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-22 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1575716908 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-23 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1575761706 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-23 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1575823438 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-23 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1576293260 ## airflow/models/baseoperator.py: ## @@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self): # of its subclasses (which don't inherit from anything but

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-24 Thread via GitHub
uranusjr commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1577423825 ## docs/apache-airflow/authoring-and-scheduling/deferring.rst: ## @@ -141,6 +141,60 @@ The ``self.defer`` call raises the ``TaskDeferred`` exception, so it can work

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-28 Thread via GitHub
Lee-W commented on PR #38674: URL: https://github.com/apache/airflow/pull/38674#issuecomment-2081989095 I'm planning on merging this PR later today. Please let me know if anyone has concerns. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, p

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-28 Thread via GitHub
ephraimbuddy commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1582607222 ## airflow/serialization/serialized_objects.py: ## @@ -1006,6 +1007,12 @@ def _serialize_node(cls, op: BaseOperator | MappedOperator, include_deps: bool)

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-28 Thread via GitHub
ephraimbuddy commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1582607222 ## airflow/serialization/serialized_objects.py: ## @@ -1006,6 +1007,12 @@ def _serialize_node(cls, op: BaseOperator | MappedOperator, include_deps: bool)

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-04-29 Thread via GitHub
Lee-W merged PR #38674: URL: https://github.com/apache/airflow/pull/38674 -- 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-unsubscr...@airflow.ap

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-05-17 Thread via GitHub
eladkal commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1604504585 ## docs/apache-airflow/authoring-and-scheduling/deferring.rst: ## @@ -141,6 +141,60 @@ The ``self.defer`` call raises the ``TaskDeferred`` exception, so it can work

Re: [PR] Starts execution directly from triggerer without going to worker [airflow]

2024-05-17 Thread via GitHub
Lee-W commented on code in PR #38674: URL: https://github.com/apache/airflow/pull/38674#discussion_r1604969145 ## docs/apache-airflow/authoring-and-scheduling/deferring.rst: ## @@ -141,6 +141,60 @@ The ``self.defer`` call raises the ``TaskDeferred`` exception, so it can work an