Commit a177f2cb authored by Andreas Valder's avatar Andreas Valder
Browse files

no "INSERT OR REPLACE" in mariadb

parent 0110f150
...@@ -50,7 +50,7 @@ def jobs_catch_broken(): ...@@ -50,7 +50,7 @@ def jobs_catch_broken():
@app.route('/internal/jobs/api/worker/<hostname>/ping', methods=['GET', 'POST']) @app.route('/internal/jobs/api/worker/<hostname>/ping', methods=['GET', 'POST'])
@jobs_api_token_required @jobs_api_token_required
def jobs_worker_ping(hostname): def jobs_worker_ping(hostname):
query('INSERT OR REPLACE INTO worker (hostname, last_ping) values (?, ?)', hostname, query('REPLACE INTO worker (hostname, last_ping) values (?, ?)', hostname,
return 'OK',200 return 'OK',200
@app.route('/internal/jobs/api/job/<int:id>/ping', methods=['GET', 'POST']) @app.route('/internal/jobs/api/job/<int:id>/ping', methods=['GET', 'POST'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment