cloud-custodian / cloud-custodian/cel-python
Permit multiple threads to share a common Environment
Open
enhancement
- Dominant language
- Python
- Stars
- 174
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
The `Environment` class saves a copy of the most recently-created `Runnable` program instance.
This can make it awkward to have an `Environment` shared by multiple threads creating thread-specific ``Runnable`` objects to do concurrent evaluations of CEL expressions.
Remove the `self.runnable` attribute and return the `Runnable` instance from `Environment.program()`
See issue #38
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.