Hi all, currently I am implement a Django API server to control the status of Feedhandler, I want to send POST request to and the request are like this {"action": "run"}, {"action":"close"}, to start / close the feedhandler, but when I try running the server together with the feedhandler, the error occur:
RuntimeError: There is no current event loop in thread 'Thread-1 (process_request_thread)'.
and I cannot close the feedhandler gracefully, and I cannot start again after closing the feedhandler.
Could I ask for some advise on how to construct a API client to trigger and stop the feedhandler? Thank you
Hi all, currently I am implement a Django API server to control the status of Feedhandler, I want to send POST request to and the request are like this {"action": "run"}, {"action":"close"}, to start / close the feedhandler, but when I try running the server together with the feedhandler, the error occur:
RuntimeError: There is no current event loop in thread 'Thread-1 (process_request_thread)'.
and I cannot close the feedhandler gracefully, and I cannot start again after closing the feedhandler.
Could I ask for some advise on how to construct a API client to trigger and stop the feedhandler? Thank you