Skip to content
Snippets Groups Projects
Commit e22b0e64 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Merge branch 'fix/webservice-elapsed-str' into 'master'

[Webservice] Fix overview page with newly submitted jobs

See merge request !1051
parents e5367add 29f590b0
No related branches found
No related tags found
1 merge request!1051[Webservice] Fix overview page with newly submitted jobs
......@@ -6,7 +6,8 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.job_monitor --log-level DEBUG
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
# Pause to make errors in startup more obvious
ExecStartPost=/usr/bin/sleep 1
Restart=on-failure
[Install]
......
......@@ -6,7 +6,8 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.serve_overview
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
# Pause to make errors in startup more obvious
ExecStartPost=/usr/bin/sleep 1
Restart=on-failure
[Install]
......
......@@ -6,7 +6,8 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.webservice --mode prod --log-level DEBUG
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
# Pause to make errors in startup more obvious
ExecStartPost=/usr/bin/sleep 1
Restart=on-failure
[Install]
......
......@@ -486,7 +486,7 @@ async def run_action(job_db, cmd, mode, proposal, run, exec_id) -> str:
jobs.append((int(jobid.strip()), exec_id))
with time_db_transaction(job_db, 'Insert jobs'):
job_db.executemany(
"INSERT INTO slurm_jobs VALUES (?, ?, 'PENDING', 0, 0)",
"INSERT INTO slurm_jobs VALUES (?, ?, 'PENDING', 0, '0')",
jobs
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment