You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "fritz-astronomer (via GitHub)" <gi...@apache.org> on 2025/12/19 16:09:59 UTC

[I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

fritz-astronomer opened a new issue, #59644:
URL: https://github.com/apache/airflow/issues/59644

   ### Description
   
   I noticed that this sensor doesn't match the implementation that seems more common in the code base
   
   
   [TimeDeltaSensor](https://airflow.apache.org/docs/apache-airflow-providers-standard/stable/sensors/datetime.html#timedeltasensor)
   [TimeDeltaSensorAsync](https://airflow.apache.org/docs/apache-airflow-providers-standard/stable/sensors/datetime.html#timedeltasensorasync)
   
   I'd expect `TimeDeltaSensor(deferrable=True)`, to match the pattern most other operators have.
   Admittedly - I haven't checked to see if the behavior is different to explain an intentional difference, or if this was oversight.
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "fritz-astronomer (via GitHub)" <gi...@apache.org>.
fritz-astronomer commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676152932

   Oh! @jroachgolf84 , thanks! 
   
   I didn't see a notice of this anywhere in the docs, and am only now seeing this in the source code :/
   
   ```
   # TODO: Remove in the next major release
   @deprecated(
       "Use `TimeDeltaSensor` with `deferrable=True` instead", category=AirflowProviderDeprecationWarning
   )
   class TimeDeltaSensorAsync(TimeDeltaSensor):
       """
   ```
   
   You're entirely right - both that `deferrable=True` already exists and that `TimeDeltaSensorAsync` is deprecated for removal.
   
   Maybe this could be a "improve docs" / make deprecation obvious issue/PR @Subham-KRLX ?
   


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "Subham-KRLX (via GitHub)" <gi...@apache.org>.
Subham-KRLX commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676048160

   @fritz-astronomer, I would like to work on this issue raising a pr regarding this.


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "Subham-KRLX (via GitHub)" <gi...@apache.org>.
Subham-KRLX commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676204919

   @fritz-astronomer @jroachgolf84 Thanks for the feedback! I have just pushed documentation improvements to this PR that make the `deferrable=True` pattern much more prominent. 
   
   The updated docs now include:
   - Dedicated "Deferrable Mode (Recommended)" section with benefits
   - Clear migration guidance from `TimeDeltaSensorAsync`
   - Better visibility of when and why to use deferrable mode
   
   Please take a look and let me know if any additional improvements are needed.


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "robertvsuch (via GitHub)" <gi...@apache.org>.
robertvsuch commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3677643472

   Hi! I'm interested in working on this issue.
   
   I have experience with data engineering and would like to contribute. Could you provide any additional context or point me to relevant code sections?
   
   Thanks!


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676188344

   @fritz-astronomer, I think that's a great idea! A docs improvement would be awesome. @Subham-KRLX, would you be willing to take a shot at this?


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3677873239

   > Hi! I'm interested in working on this issue.
   > 
   > I have experience with data engineering and would like to contribute. Could you provide any additional context or point me to relevant code sections?
   > 
   > Thanks!
   
   Can you please stop copy&pasting the same thing as already asked ? So far you asked it about 10 times and there are 0 PRs from you, I am reporting you to GitHub - they will likely block your account.


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl closed issue #59644: `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)`
URL: https://github.com/apache/airflow/issues/59644


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676053471

   @fritz-astronomer, can you explain this a bit more? From what I can tell, `TimeDeltaSensorAsync` is going to be removed in a future release, and the code base points to `TimeDeltaSensor`. What specifically about this Sensor isn't lining up?


-- 
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: [I] `TimeDeltaSensorAsync` vs `TimeDeltaSensor(deferrable=True)` [airflow]

Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #59644:
URL: https://github.com/apache/airflow/issues/59644#issuecomment-3676589715

   Can you link the PR 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