(self)
| 257 | |
| 258 | @task |
| 259 | def submit_request(self): |
| 260 | stage = _current_stage(self.stages) |
| 261 | request_index = int(time.time() * 1000) % 1_000_000 |
| 262 | payload = _build_request_payload(self.base_config, stage, request_index) |
| 263 | send_started = time.perf_counter() |
| 264 | try: |
| 265 | host, port = _get_controller_target() |
| 266 | self.req_mgr.send(host, port, payload) |
| 267 | events.request.fire( |
| 268 | request_type="zmq", |
| 269 | name=f"{stage.name}:config_push", |
| 270 | response_time=(time.perf_counter() - send_started) * 1000.0, |
| 271 | response_length=len(str(payload)), |
| 272 | exception=None, |
| 273 | ) |
| 274 | except Exception as exc: |
| 275 | events.request.fire( |
| 276 | request_type="zmq", |
| 277 | name=f"{stage.name}:config_push", |
| 278 | response_time=(time.perf_counter() - send_started) * 1000.0, |
| 279 | response_length=0, |
| 280 | exception=exc, |
| 281 | ) |
| 282 | |
| 283 | |
| 284 | __all__ = [ |
nothing calls this directly
no test coverage detected