locust-cloud 1.4.1__py3-none-any.whl → 1.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,6 +126,11 @@ VALUES (%(time)s, %(run_id)s, %(greenlet_id)s, %(loadgen)s, %(name)s, %(request_
126
126
  def on_test_stop(self, environment):
127
127
  if getattr(self, "_user_count_logger", False):
128
128
  self._user_count_logger.kill()
129
+ with self.pool.connection() as conn:
130
+ conn.execute(
131
+ """INSERT INTO number_of_users(time, run_id, user_count) VALUES (%s, %s, %s)""",
132
+ (datetime.now(UTC).isoformat(), self._run_id, 0),
133
+ )
129
134
  self.log_stop_test_run()
130
135
 
131
136
  def on_quit(self, exit_code, **kwargs):