Flask-Shell2HTTP
Flask-Shell2HTTP copied to clipboard
Execute shell commands via HTTP server (via flask's endpoints).
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...
- [x] Make `Shell2HTTP` a subclass of `Flask.Blueprint` class and related fixes. - [ ] Update examples - [ ] Update tests - [ ] Update docs
Currently, flask-shell2http works just like any other flask extension; you create an object from a class to which you pass the flask application instance. We could follow a different approach...
> I figured out that the issue has to do with having multiple Gunicorn workers handling requests. The report only exists for the same worker that handled the original request....
When using `&wait=true`, the `callback_fn` cannot be used to modify the result because it is called _after_ the future completes. This happens if one calls `future.done()` to wait before the...
An important test case is missing. See codecov diff: https://codecov.io/gh/Eshaan7/flask-shell2http/src/master/flask_shell2http/classes.py#L146
This extension is quite configurable and different users may choose to use it differently. For this, we should add more examples under [examples/](examples/). These can be something new or ones...
### Discussed in https://github.com/eshaan7/Flask-Shell2HTTP/discussions/56 Originally posted by **tomvanderputte** November 6, 2023 Is it possible to intercept and change the dynamic arguments before the command is triggered? The reason is: the...
`2023-04-25 23:12:39 ERROR:flask_shell2http:future_key ebbb407f already exists 2023-04-25 23:12:39 ERROR:flask_shell2http:No report exists for key: 'ebbb407f'.` These are interspersed with working calls. I turned off `wait=true` and switched to polling. This reduced...