Commit 32b2f2a4 authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

fixed bug with slurm time parsing

parent 1676fe87
......@@ -130,7 +130,7 @@ def slurm_time_to_sec(slurm_time):
# 1:days, 2:hours, 3:minutes, 4:seconds
m =
"([0-9]{2})?-?([0-9]{2})?:?([0-9]{2}):([0-9]{2})", slurm_time)
"([0-9]{1,2})?-?([0-9]{2})?:?([0-9]{2}):([0-9]{2})", slurm_time)
if is None or is None:
raise ValueError("Couldn't parse time", slurm_time)
......@@ -319,7 +319,7 @@ def export_job_info(job_id):
fdata = format_influx_db_out(job_id, job_info, alloc_info)
payload = {'db': confdb.IDB["database"], 'precision': 's'}
write_url = "{:s}/write".format(confdb.IDB["api_url"])
r =, auth=HTTPBasicAuth(
confdb.IDB["username"], confdb.IDB["password"]),
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