question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[exploration] support async solid defs in appropriate python versions

See original GitHub issue

should we support asyncio.run ing solids ?

@solid(...)
async def fancy():
  x = await do_stuff()
  return x

should we support async generators in python 3.6+ ?

@solid(...)
async def fancy():
  x = await do_stuff()
  yield Output(x)

should we have an in process engine that gathers over multiple async solids ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JBrVJxsccommented, Apr 13, 2021

AWESOME!!! THANK YOU!!!

0reactions
yuhancommented, Apr 13, 2021

closing as @solid can now decorate async def functions since 0.11.4. will track work about the proper executor support in a separate issue https://github.com/dagster-io/dagster/issues/4041

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python behind the scenes #12: how async/await works in ...
Mark functions as async. Call them with await. All of a sudden, your program becomes asynchronous – it can do useful things while...
Read more >
asyncio — Asynchronous I/O — Python 3.11.1 documentation
asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection ...
Read more >
How to choose asynchronous or synchronous method ...
So yes - two different independent AsyncCommunicationStack and CommunicationStack classes is a way to go if you want to support both worlds.
Read more >
Top 9 Asynchronous Web Frameworks for Python
One catch is that Python 3.7+ is only supported, but, then, if you're not running the latest version of Python, maybe async isn't...
Read more >
Some thoughts on asynchronous API design in a post- ...
I've recently been exploring the exciting new world of asynchronous I/O libraries in Python 3 – specifically asyncio and curio.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found