intuit / Tank

Tank is a downloadable application that can be used to load test websites
Eclipse Public License 1.0
84 stars 61 forks source link

Fix Stop during Initial Ramp for Nonlinear Workload #318

Closed Zakaria-Kofiro closed 4 months ago

Zakaria-Kofiro commented 5 months ago

Fix Stop during Initial Ramp for Nonlinear Workload Simple fix for an issue where stopping a nonlinear job during the initial ramp (the duration of time until the ramp rate reaches the target ramp rate) will continue running the job due to the no checks for agent stop command - this results in the initial ramp ignoring the stop command and continuing to ramp up until target ramp rate is reached (enters main loop). It also resulted in unexpected behavior when stopping a paused job during the initial ramp - this exits the pause state and continues ramping up before entering the main loop and stopping.

Adding the check for the agent stop command in the initial ramp method now stops the ramp as expected, whether the job is running or paused.

Please make sure these check boxes are checked before submitting

PR review process