Made asyncronyous backup creation request

pull/2/head
Illia Chub 2021-11-11 11:49:12 +02:00
parent ba2d785ada
commit 5612ff5373
No known key found for this signature in database
GPG Key ID: 5D3581534C02467A
2 changed files with 5 additions and 3 deletions

View File

@ -502,9 +502,10 @@ def CreateSingleBackup():
backupProcessDescriptor = subprocess.Popen(backupCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
commandOutput=backupProcessDescriptor.communicate()[0]
return commandOutput
return jsonify(
status=0,
message="Backup creation has started"
)
@app.route("/services/ssh/key/send", methods=["PUT"])

View File

@ -1,5 +1,6 @@
wheel
flask
flask_restful
flask-restful
flask_socketio
pandas