You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you execute k6 run --verbose --linger github.com/loadimpact/k6/samples/thresholds_readme_example.js locally, and hit Ctrl+C after k6 has initialized all of the VUs and has started running the test, but before the test has finished, currently, k6 will output Linger set; waiting for Ctrl+C... and wait indefinitely...
This seems a bit odd to me - I think if there was a single Ctrl+C, it shouldn't wait for you to do it again, just because of --linger, so this seems like a minor k6 bug to me... For example, if you hit Ctrl+C when VUs are initializing, the test aborts immediately
The text was updated successfully, but these errors were encountered:
This allows metric processing to still occur, even after the script run has completed. In practice, this allows you to run k6 with the --linger --no-teardown flags, and execute the teardown() function manually through the REST API, after the main test run has completed.
This also fixes#1369 - now a second Ctrl+C will _always_ abort k6, albeit in a very abrupt way. On the other hand, the first Ctrl+C would be more graceful than it currently is, since it will now allow teardown() to be executed.
This allows metric processing to still occur, even after the script run has completed. In practice, this allows you to run k6 with the --linger --no-teardown flags, and execute the teardown() function manually through the REST API, after the main test run has completed.
This also fixes#1369 - now a second Ctrl+C will _always_ abort k6, albeit in a very abrupt way. On the other hand, the first Ctrl+C would be more graceful than it currently is, since it will now allow teardown() to be executed.
When you execute k
6 run --verbose --linger github.com/loadimpact/k6/samples/thresholds_readme_example.js
locally, and hit Ctrl+C after k6 has initialized all of the VUs and has started running the test, but before the test has finished, currently, k6 will outputLinger set; waiting for Ctrl+C...
and wait indefinitely...This seems a bit odd to me - I think if there was a single Ctrl+C, it shouldn't wait for you to do it again, just because of
--linger
, so this seems like a minor k6 bug to me... For example, if you hit Ctrl+C when VUs are initializing, the test aborts immediatelyThe text was updated successfully, but these errors were encountered: