Skip to content

Commit 8247142

Browse files
committed
🐛 Ensure monitor argument present in all single item upload methods
1 parent d6a684d commit 8247142

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

simvue/sender/actions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,11 +934,13 @@ def _single_item_upload(
934934
id_mapping: dict[str, str],
935935
cache_directory: pathlib.Path,
936936
thread_lock: threading.Lock,
937+
simvue_monitor_run: SimvueRun,
937938
*,
938939
throw_exceptions: bool = False,
939940
retry_failed: bool = False,
940941
) -> None:
941942
"""Upload a single heartbeat item."""
943+
_ = simvue_monitor_run
942944
if not (_online_id := id_mapping.get(identifier)):
943945
# Run has been closed - can just remove heartbeat and continue
944946
cache_directory.joinpath(f"runs/{identifier}.heartbeat").unlink()
@@ -1029,10 +1031,12 @@ def _single_item_upload(
10291031
id_mapping: dict[str, str],
10301032
cache_directory: pathlib.Path,
10311033
thread_lock: threading.Lock,
1034+
simvue_monitor_run: SimvueRun,
10321035
*,
10331036
throw_exceptions: bool = False,
10341037
retry_failed: bool = False,
10351038
) -> None:
1039+
_ = simvue_monitor_run
10361040
_ = identifier
10371041
_ = id_mapping
10381042
_ = cache_directory

0 commit comments

Comments
 (0)