MCPcopy
hub / github.com/locustio/locust / MySubTaskSet

Class MySubTaskSet

locust/test/test_locust_class.py:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 class MyTaskSet(TaskSet):
363 @task
364 class MySubTaskSet(TaskSet):
365 wait_time = constant(0.001)
366
367 @task()
368 def a_task(self):
369 self.user.sub_locust_task_executed = True
370 self.interrupt()
371
372 self.sub_locust_task_executed = False
373 loc = MyTaskSet(self.locust)

Callers

nothing calls this directly

Calls 1

constantFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…