cloud-custodian / cloud-custodian/cel-python

Permit multiple threads to share a common Environment

Open
#169 3 comments 0 reactions 1 assignee Claimed by @Quantum0uasar View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.