Skip to content

Commit c5a8b60

Browse files
authored
Merge pull request #484 from ryuwd/patch-2
2 parents 2370298 + cfde1cf commit c5a8b60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

diracx-logic/src/diracx/logic/jobs/status.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ async def set_job_statuses(
212212
await job_parameters_db.upsert(res["VO"], job_id, {"Status": new_status})
213213

214214
for upd_time in update_times:
215-
if status_dict[upd_time]["Source"].startswith("Job"):
215+
source = status_dict[upd_time]["Source"]
216+
if source.startswith("Job") or source == "Heartbeat":
216217
job_data["HeartBeatTime"] = str(upd_time)
217218

218219
if not start_time and new_start_time:

0 commit comments

Comments
 (0)