Open pkerpedjiev opened 1 year ago
I don't think the import is the problem, just the Lock()
instantiation that lambda doesn't support. Could you try wrapping that in a try block and set it to None
if it fails?
Won't that fail here: https://github.com/open2c/cooler/blob/master/src/cooler/parallel.py#L256?
Yeah, that would need guarding if it works. if self.use_lock and lock is not None:
But that tooling is only used internally inside balance
anyway.
Here is the error message I get:
Reference: https://stackoverflow.com/questions/34005930/multiprocessing-semlock-is-not-implemented-when-running-on-aws-lambda
Not sure what the best solution is. In my use case I'm not using the cooler balance functionality and will likely just wrap that import in a
try/else
statement. Maybe it's possible to remove thebalance
import which uses parallel from__init__.py
so it's not automatically loaded?