Permit multiple threads to share a common Environment

Open
#169 3 comments 0 reactions 1 assignee View on GitHub

@Quantum0uasar is already working on this.

Since Jun 1, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

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

Dominant language
Python
Stars
174
Forks
40
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloud-custodian/cel-python

All issues in cloud-custodian/cel-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.