Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
a177f2cb
Commit
a177f2cb
authored
Apr 15, 2017
by
Andreas Valder
Browse files
no "INSERT OR REPLACE" in mariadb
parent
0110f150
Changes
1
Hide whitespace changes
Inline
Side-by-side
jobs.py
View file @
a177f2cb
...
...
@@ -50,7 +50,7 @@ def jobs_catch_broken():
@
app
.
route
(
'/internal/jobs/api/worker/<hostname>/ping'
,
methods
=
[
'GET'
,
'POST'
])
@
jobs_api_token_required
def
jobs_worker_ping
(
hostname
):
query
(
'
INSERT OR
REPLACE INTO worker (hostname, last_ping) values (?, ?)'
,
hostname
,
datetime
.
now
())
query
(
'REPLACE INTO worker (hostname, last_ping) values (?, ?)'
,
hostname
,
datetime
.
now
())
return
'OK'
,
200
@
app
.
route
(
'/internal/jobs/api/job/<int:id>/ping'
,
methods
=
[
'GET'
,
'POST'
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment