mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-18 18:37:37 +08:00
feat: support rendezvous after spawn done
Change-Id: I4b07a88b61da4dc1863b189db9eb831ffb14130a
This commit is contained in:
@@ -127,3 +127,11 @@ func (b *Boomer) RecordFailure(requestType, name string, responseTime int64, exc
|
||||
func (b *Boomer) Quit() {
|
||||
b.localRunner.stop()
|
||||
}
|
||||
|
||||
func (b *Boomer) IsSpawnDone() bool {
|
||||
return b.localRunner.isSpawnDone
|
||||
}
|
||||
|
||||
func (b *Boomer) GetSpawnCount() int {
|
||||
return b.localRunner.spawnCount
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ type runner struct {
|
||||
spawnCount int // target clients to spawn
|
||||
spawnRate float64
|
||||
loop *Loop // specify running cycles
|
||||
isSpawnDone bool
|
||||
|
||||
outputs []Output
|
||||
}
|
||||
@@ -193,6 +194,7 @@ func (r *localRunner) spawnWorkers(spawnCount int, spawnRate float64, quit chan
|
||||
}
|
||||
}
|
||||
|
||||
r.isSpawnDone = true
|
||||
if spawnCompleteFunc != nil {
|
||||
spawnCompleteFunc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user