Skip to content

Commit

Permalink
Updated log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nilsson committed Feb 9, 2024
1 parent 864a158 commit b81df66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pilot/util/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def update_pilot_heartbeat(update_time: float, detected_job_suspension: bool = F
dictionary['max_diff_time'] = max_diff_time
dictionary[f'last_{name}_update'] = int(update_time)
dictionary['time_since_detection'] = time_since_detection if detected_job_suspension else 0
if time_since_detection:
if detected_job_suspension:
logger.warning(f'job suspension detected: time since detection: {time_since_detection} seconds')
else:
logger.debug(f'no job suspension detected (detected_job_suspension={detected_job_suspension})')
logger.debug('no job suspension detected')

status = write_json(path, dictionary)
if not status:
Expand Down

0 comments on commit b81df66

Please sign in to comment.