aiidateam / plumpy

A python workflows library that supports writing Processes with a well defined set of inputs and outputs that can be strung together.
https://plumpy.readthedocs.io
Other
8 stars 17 forks source link

Defer import of aio_pika #287

Open danielhollas opened 2 months ago

danielhollas commented 2 months ago

This saves ~40ms import time (36% of total plumpy import time). This translates to faster import time of aiida.orm

danielhollas commented 2 months ago

Hmm, turns out we import ConnectionClosed from this plumpy module in aiida/engine/processes/process.py, that's unfortunate.

There is some trickery to be done to still save this PR, but for now marking as draft.