workers fix
This commit is contained in:
+6
-6
@@ -51,14 +51,14 @@ def get_workers():
|
||||
rows = con.execute(
|
||||
"""
|
||||
SELECT
|
||||
worker_id,
|
||||
id,
|
||||
status,
|
||||
started_at,
|
||||
last_seen_at,
|
||||
current_job_id,
|
||||
started_at,
|
||||
metadata_json
|
||||
FROM workers
|
||||
ORDER BY worker_id
|
||||
ORDER BY id
|
||||
"""
|
||||
).fetchall()
|
||||
|
||||
@@ -73,14 +73,14 @@ def get_worker(worker_id: str):
|
||||
row = con.execute(
|
||||
"""
|
||||
SELECT
|
||||
worker_id,
|
||||
id,
|
||||
status,
|
||||
started_at,
|
||||
last_seen_at,
|
||||
current_job_id,
|
||||
started_at,
|
||||
metadata_json
|
||||
FROM workers
|
||||
WHERE worker_id = ?
|
||||
WHERE id = ?
|
||||
""",
|
||||
(worker_id,),
|
||||
).fetchone()
|
||||
|
||||
Reference in New Issue
Block a user