mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 14:59:38 +08:00
merge upstream master change
This commit is contained in:
@@ -245,15 +245,14 @@ func (b *HRPBoomer) initWorker(profile *boomer.Profile) {
|
|||||||
b.InitBoomer()
|
b.InitBoomer()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *HRPBoomer) rebalanceBoomer(profile *boomer.Profile) {
|
func (b *HRPBoomer) rebalanceRunner(profile *boomer.Profile) {
|
||||||
b.SetProfile(profile)
|
b.SetSpawnCount(profile.SpawnCount)
|
||||||
b.SetSpawnCount(b.GetProfile().SpawnCount)
|
b.SetSpawnRate(profile.SpawnRate)
|
||||||
b.SetSpawnRate(b.GetProfile().SpawnRate)
|
|
||||||
b.SetRunTime(b.GetProfile().RunTime)
|
|
||||||
b.GetRebalanceChan() <- true
|
b.GetRebalanceChan() <- true
|
||||||
log.Info().Interface("profile", profile).Msg("rebalance tasks successfully")
|
log.Info().Interface("profile", profile).Msg("rebalance tasks successfully")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (b *HRPBoomer) PollTasks(ctx context.Context) {
|
func (b *HRPBoomer) PollTasks(ctx context.Context) {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user