Skip to content

Async#422

Merged
mcoughlin merged 5 commits into
cesium-ml:mainfrom
mcoughlin:async
Jun 12, 2026
Merged

Async#422
mcoughlin merged 5 commits into
cesium-ml:mainfrom
mcoughlin:async

Conversation

@mcoughlin

Copy link
Copy Markdown
Collaborator

async capabilities on top of #421

Comment thread pyproject.toml Outdated
"phonenumbers>=8.12.15",
"psycopg2-binary>=2.8.6",
"psycopg[binary]>=3.2.0",
"greenlet>=3.0.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what does greenlet do? Asking because I see no explicit import to it here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It is the dependency for the async stuff. Could also import this as sqlalchemy[asyncio].

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yes that's definitely a lot clearer. Thanks

@mcoughlin mcoughlin changed the title [WIP] Async Async May 18, 2026
@mcoughlin mcoughlin requested review from Theodlz and stefanv May 18, 2026 08:34

@antoine-le-calloch antoine-le-calloch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, one small comment.

Comment thread app/access.py
Comment on lines +9 to +16
from baselayer.app.models import ( # noqa: F401
DBSession,
Role,
Token,
User,
async_plain_session_factory,
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

async_plain_session_factory can be remove here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed!

@antoine-le-calloch

Copy link
Copy Markdown
Contributor

@mcoughlin another comment is that the sync stuff pass insertmanyvalues_page_size=EXECUTEMANY_PAGESIZE but not the async.

@mcoughlin

Copy link
Copy Markdown
Collaborator Author

@antoine-le-calloch Got that one too, thanks!

@mcoughlin mcoughlin merged commit 8efdff8 into cesium-ml:main Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants