Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
bmtcril committed Mar 25, 2024
1 parent a996385 commit 76c3862
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@

RUNNING_IN_PLATFORM = False

log = logging.getLogger(__name__)
log = logging.getLogger("tracking_event_loadtest")


class LoadTest:
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
except ImportError:
confluent_kafka = None

log = logging.getLogger(__name__)
log = logging.getLogger("tracking_event_loadtest_monitor")


class Monitor:
@@ -108,6 +108,8 @@ def test_has_ended(self) -> bool:
timeout=self.ch_timeout_secs,
)

log.info(response.text)

# ClickHouse will respond with the ID and a newline or an empty string
return response.text.strip() == self.run_id

0 comments on commit 76c3862

Please sign in to comment.