Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes change in sequence id

Stefan Krawczyk7585de1d5e6b
diff --git a/burr/tracking/client.py b/burr/tracking/client.py
index bfbf9209..83c7f22b 100644
--- a/burr/tracking/client.py
+++ b/burr/tracking/client.py
@@ -120,8 +120,8 @@ class LocalTrackingClient(
line = json_lines[sequence_no]
except IndexError:
raise ValueError(f"Sequence number {sequence_no} not found for {project}/{app_id}.")
- # check sequence number matches if non-negative
- line_seq = int(line["sequence_no"])
+ # check sequence number matches if non-negative; will break if either is None.
+ line_seq = int(line["sequence_id"])
if -1 < sequence_no != line_seq:
logger.warning(
f"Sequence number mismatch. For {project}/{app_id}: "