Skip to content

Commit 7c88a91

Browse files
committed
clean up
1 parent ade1cea commit 7c88a91

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

agent/compiler/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import TypedDict, overload
2+
import os
23
import time
34
import uuid
45
import shlex
@@ -99,7 +100,7 @@ def exec_demux(container: docker.models.containers.Container, command: list[str]
99100
exit_code, (stdout, stderr) = container.exec_run(
100101
command,
101102
demux=True,
102-
environment={"NO_COLOR": "1", "FORCE_COLOR": "0", "APP_DATABASE_URL": "postgres://postgres:postgres@postgres:5432/postgres"},
103+
environment={"NO_COLOR": "1", "FORCE_COLOR": "0", **dict(os.environ)},
103104
)
104105
return CompileResult(
105106
exit_code=exit_code,

agent/policies/drizzle.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,11 @@ def run(input: list[MessageParam], *args, init: bool = False, **kwargs) -> Drizz
118118

119119
@property
120120
def is_successful(self) -> bool:
121-
res = (
121+
return (
122122
not isinstance(self.data.output, Exception)
123123
and self.data.output.feedback["exit_code"] == 0
124124
and self.data.output.feedback["stderr"] is None
125125
)
126-
if not res:
127-
print(f"DrizzleTaskNode failed: {self.data.output} {self.data.output.feedback}")
128-
# FixMe: clean up after debugging
129-
return res
130126

131127
@staticmethod
132128
@contextmanager

0 commit comments

Comments
 (0)