Skip to content

Commit

Permalink
feat: Store load test run
Browse files Browse the repository at this point in the history
Allows the monitor to wait until the run starts and share the run id with the load test script.
  • Loading branch information
bmtcril committed Mar 25, 2024
1 parent 1b507d2 commit 329f652
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def record_start(self) -> None:
"username_prefix": self.username_prefix,
})

# Let the monitoring script connect, otherwise we can finish the test before it even
# knows we've started.
sleep(5)

def record_end(self) -> None:
self.record_to_clickhouse("end", {
"sent_event_count": self.sent_event_count
Expand Down

0 comments on commit 329f652

Please sign in to comment.