cloud-custodian / cloud-custodian/cel-python

Permit multiple threads to share a common Environment

Offen
#169 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Quantum0uasar Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
174
Forks
40
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.