kaxil commented on code in PR #45002:
URL: https://github.com/apache/airflow/pull/45002#discussion_r1888936357
##########
airflow/models/taskinstance.py:
##########
@@ -3615,7 +3615,10 @@ def duration_expression_update(
return query.values(
{
"end_date": end_date,
- "duration": (func.julianday(end_date) -
func.julianday(cls.start_date)) * 86400,
+ "duration": func.cast(
Review Comment:
Or we could simplify and just do the following since we just care about
seconds:
```sql
sqlite> SELECT strftime('%s', '2024-06-01T01:00:00') - strftime('%s',
'2024-06-01T00:00:00');
3600
```
thoughts @ashb ?
--
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]