Skip to content

Conversation

@0lai0
Copy link
Contributor

@0lai0 0lai0 commented Dec 15, 2025

related: #59402


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Dec 15, 2025
cli_action_loggers.default_action_log(**metrics)

log = session.query(Log).order_by(Log.dttm.desc()).first()
log = session.execute(select(Log).order_by(Log.dttm.desc())).scalars().first()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello @0lai0
What if we write it this way?

log = session.scalars(select(Log).order_by(Log.dttm.desc())).first()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, let me modify it. Thanks @Prab-27 .

cli_action_loggers.default_action_log(**metrics)

log = session.query(Log).order_by(Log.dttm.desc()).first()
log = session.execute(select(Log).order_by(Log.dttm.desc())).scalars().first()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here,

log = session.scalars(select(Log).order_by(Log.dttm.desc())).first()

What do you think ?

@Prab-27
Copy link
Contributor

Prab-27 commented Dec 16, 2025

need to rebase !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants