Skip to content

Commit e12d019

Browse files
committed
Log streaming may have been interrupted. Some logs may be missing.
1 parent de52dab commit e12d019

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chipflow_lib/steps/silicon.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,11 @@ def submit(self, rtlil_path, *, dry_run=False, wait=False):
185185
print(f"Design submitted successfully! Build URL: {build_url}")
186186

187187
# Poll the status API until the build is completed or failed
188+
counter = 0
188189
if wait:
189190
while True:
191+
counter += 1
192+
logger.info(f"Polling build status... (attempt {counter})")
190193
status_resp = requests.get(
191194
build_status_url,
192195
auth=(os.environ["CHIPFLOW_API_KEY_ID"], os.environ["CHIPFLOW_API_KEY_SECRET"])
@@ -210,6 +213,8 @@ def submit(self, rtlil_path, *, dry_run=False, wait=False):
210213
# time.sleep(10)
211214
# Attempt to stream logs rather than time.sleep
212215
try:
216+
if counter > 1:
217+
logger.warning("Log streaming may have been interrupted. Some logs may be missing.")
213218
with requests.get(
214219
log_stream_url,
215220
auth=(os.environ["CHIPFLOW_API_KEY_ID"], os.environ["CHIPFLOW_API_KEY_SECRET"]),

0 commit comments

Comments
 (0)