-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blog post: Debug async in AiiDA #86
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
The linkcheck is fail but it actually work, is that possible to just ignore the check for certain links? |
Yeah, this has been happening for basically every PR here... I'll have a look, maybe we can ignore the offending links. Sometimes, one can access them normally from the browser, but it fails for the GHA runners. |
I think it can be added Line 124 in f1973d5
|
304b42c
to
896c76a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking text @GeigerJ2 looks much better. I further push some tiny changes.
As part of its architecture, AiiDA employs [**Plumpy** (a Python workflow library)](https://github.com/aiidateam/plumpy) under the hood to schedule AiiDA processes into an event loop. | ||
Plumpy relies on asynchronous mechanisms (Futures, event loops, coroutines) for handling complex workflows with potentially long-lived tasks. | ||
As part of its architecture, AiiDA employs [**Plumpy** (a Python workflow library maintained by the AiiDA team)](https://github.com/aiidateam/plumpy) under the hood to schedule AiiDA processes into an event loop. | ||
Plumpy relies on asynchronous principles and mechanisms (Futures, event loops, coroutines) for handling complex workflows with potentially long-lived tasks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just say "asynchronous programming".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unkcpz just added one more commit with some minor text corrections. Thank you, nice work!
|
||
3. **Tracers and Profilers**: | ||
- Tools such as [Yappi](https://github.com/sumerc/yappi) or [PyInstrument](https://github.com/joerick/pyinstrument) can sometimes give you an overview of where the code is spending time. | ||
- When writting this post, I found out about these tools, and deemed it worth it to give them a try in AiiDA. However, they require more standard event loop management without using `nest-asyncio`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make it less personal, so I modified this in my latest commit.
No description provided.