You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dominic-lcw (via GitHub)" <gi...@apache.org> on 2025/04/05 10:07:05 UTC

[I] Adding day lags to datetime sensor DateTimeSensor [airflow]

dominic-lcw opened a new issue, #48832:
URL: https://github.com/apache/airflow/issues/48832

   ### Description
   
   Theres a use case on my side.
   
   Suppose I have a dag running on T0 and I want a DateTimeSensor to wait for T+1 9am. I am not sure if DateTimeSensor can support that.
   
   If its not supported yet, shall we add a day_lag argument to it?
   
   <img width="432" alt="Image" src="https://github.com/user-attachments/assets/ce499e27-cf80-4854-9d1e-8dc5515e9b6c" />
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] 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] Adding day lags to datetime sensor DateTimeSensor [airflow]

Posted by "dominic-lcw (via GitHub)" <gi...@apache.org>.
dominic-lcw closed issue #48832: Adding day lags to datetime sensor DateTimeSensor
URL: https://github.com/apache/airflow/issues/48832


-- 
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] Adding day lags to datetime sensor DateTimeSensor [airflow]

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

   Can you please explain your use case a little better with an example ? E.g. your dag starts at 1 AM and you want to wait till 9 hours from dag start time and start actual dag at 10 AM? Does something like TimeDeltaSensor help?
   
   https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/time.html


-- 
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] Adding day lags to datetime sensor DateTimeSensor [airflow]

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

   Thanks, I overlooked TimeDeltaSensor. This should be a better solution already.


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