From 796598d07f3eb8761e6d3d8667ef5499f26cd589 Mon Sep 17 00:00:00 2001 From: Alex Wiens <alex.wiens@uni-paderborn.de> Date: Tue, 18 Feb 2025 17:54:25 +0100 Subject: [PATCH] Prule.daemon: Fix variable --- prule/daemon/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prule/daemon/__main__.py b/prule/daemon/__main__.py index 594d648..aa7881b 100644 --- a/prule/daemon/__main__.py +++ b/prule/daemon/__main__.py @@ -802,7 +802,7 @@ class PruleThread(threading.Thread): job_meta = job_res['Meta'] job_cluster = job_meta["cluster"] - job_slurmid = str(job_meta["jobId"]) + job_slurmid = job_meta["jobId"] job_startTime = str(job_meta["startTime"]) if type(job_meta["startTime"]) == int else str(int(datetime.datetime.fromisoformat(job_meta['startTime']).timestamp())) # prepare job path for filesystem access or download jobarchive from API @@ -811,7 +811,7 @@ class PruleThread(threading.Thread): if config.config["API_JOBARCHIVE"] == False: # Load job from filesystem - job_path = os.path.join(config.config["JOBARCHIVE_PATH"], job_cluster, job_slurmid[:-3], job_slurmid[-3:], job_startTime) + job_path = os.path.join(config.config["JOBARCHIVE_PATH"], job_cluster, str(job_slurmid)[:-3], str(job_slurmid)[-3:], job_startTime) else: # Load job from jobarchive api and write it to tempdir with prule.debug.Timing("prulethread.request_jobarchive", "PRINT_TIMING" in config.config): -- GitLab