Flask-Shell2HTTP icon indicating copy to clipboard operation
Flask-Shell2HTTP copied to clipboard

Possibility to interrupt command

Open njxqlus opened this issue 3 years ago • 4 comments

Is it possible to interrupt command (like CTRL+C)?

For example, I started Locust (load testing framework) for one file, now I want to stop it and start one more test with other params.

njxqlus avatar Dec 22 '21 12:12 njxqlus

Hello.

At the moment, there's no way to request cancellation of a running command but I can see how it could be an useful addition to this package.

Meanwhile, you may be able to achieve what you want by providing a lower timeout value and making force_unique_key=true. Refer here.

eshaan7 avatar Dec 22 '21 14:12 eshaan7

@eshaan7 OMG, so fast! Thank you, waiting for new release

njxqlus avatar Dec 22 '21 15:12 njxqlus

You're welcome, @njxqlus! This feature is available in the v1.9.0 release which is already live on pypi.

eshaan7 avatar Dec 22 '21 15:12 eshaan7

Delete endpoint still don't terminate or kill process. That's mean, for example, if I call sleep for 10 minutes, process sleep will exists for 10 minutes

njxqlus avatar Dec 22 '21 16:12 njxqlus