ashb commented on a change in pull request #16401:
URL: https://github.com/apache/airflow/pull/16401#discussion_r663775799
##########
File path: airflow/models/dagrun.py
##########
@@ -153,6 +161,7 @@ def set_state(self, state):
if self._state != state:
self._state = state
self.end_date = timezone.utcnow() if self._state in State.finished
else None
+ self.queued_at = timezone.utcnow() if self._state == State.QUEUED
else self.queued_at
Review comment:
```suggestion
if state == State.QUEUED:
self.queued_at = timezone.utcnow()
```
--
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]