diff --git a/executor/executor.py b/executor/executor.py index 2bb7e71..5a08a3d 100644 --- a/executor/executor.py +++ b/executor/executor.py @@ -863,6 +863,15 @@ class Executor: ) self._log.write_plain(msg) + print( + f"{ts_iso} {report.status.upper()} | corr={report.correlation_id} | " + f"triangle={report.triangle_key} | predicted_bps={report.predicted_bps:.2f} | " + f"effective_bps={report.effective_bps:.2f} | " + f"profit={report.profit:.4f}" + f"{f' | error={report.error}' if report.error else ''}", + flush=True, + ) + async def cancel_execution(self, correlation_id: str) -> bool: """ Request cancellation of an in-flight execution by setting _cancelled