Skip to content

Commit ce582e0

Browse files
author
Dhruv Garg
committed
[service] log line to track tasks that get delayed in execution
1 parent b4aceeb commit ce582e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rpc/service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ async def NotifyTaskCompletion(self, request, context):
753753
self._logger.info(
754754
f"[{stime}] Adding event {task_finished_event} to the simulator's event queue"
755755
)
756+
if actual_task_completion_time < self.__stime():
757+
self._logger.error(
758+
f"[{stime}] Task '{request.task_id}' of task graph '{r.task_graph.name}' had exceeded its runtime by {self.__stime() - actual_task_completion_time}")
756759

757760
scheduler_start_event = Event(
758761
event_type=EventType.SCHEDULER_START,

0 commit comments

Comments
 (0)