mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 22:32:10 +00:00
Work on communication
Testing only FIx test
This commit is contained in:
@@ -14,18 +14,18 @@ app = Flask(__name__)
|
||||
|
||||
@app.route("/conjurer", methods=["POST"])
|
||||
def answer_external_command():
|
||||
app.logger.info(request)
|
||||
record = json.loads(request.data)
|
||||
app.logger.info(record)
|
||||
app.logger.info("DATA RECEIVED")
|
||||
|
||||
|
||||
while True:
|
||||
try:
|
||||
q_data = internal_q.get(block=False)
|
||||
except Empty:
|
||||
break
|
||||
if q_data.uuid in record:
|
||||
pass
|
||||
if q_data.uuid in record:
|
||||
q_data.stop = True
|
||||
IN_COMM_Q.put(q_data)
|
||||
|
||||
return jsonify("SUCCESS")
|
||||
|
||||
@@ -56,7 +56,6 @@ def scan_queue(_logger):
|
||||
data = OUT_COMM_Q.get()
|
||||
_logger.info(data)
|
||||
internal_q.put(data)
|
||||
query_list.append(data)
|
||||
|
||||
def comm_subroutine(logger):
|
||||
#logger.setLevel(logging.DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user