MCPcopy Create free account
hub / github.com/openai/openai-agents-python / TemporaryRedisServer

Class TemporaryRedisServer

examples/run_examples.py:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130@dataclass
131class TemporaryRedisServer:
132 process: subprocess.Popen[bytes]
133 temp_dir: tempfile.TemporaryDirectory[str]
134 url: str
135
136 def close(self) -> None:
137 if self.process.poll() is None:
138 self.process.terminate()
139 try:
140 self.process.wait(timeout=5)
141 except subprocess.TimeoutExpired:
142 self.process.kill()
143 self.process.wait(timeout=5)
144 self.temp_dir.cleanup()
145
146
147def normalize_relpath(relpath: str) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected