Skip to content

Commit

Permalink
Use error instead of warning when tasks are killed due to inactivity (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nazywam authored Mar 11, 2024
1 parent 9964de1 commit c7932af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karton/system/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def gc_collect_tasks(self) -> None:
and current_time > task.last_update + self.task_dispatched_timeout
):
to_delete.append(task)
self.log.warning(
self.log.error(
"Task %s is in Dispatched state more than %d seconds. "
"Killed. (origin: %s)",
task.uid,
Expand All @@ -116,7 +116,7 @@ def gc_collect_tasks(self) -> None:
and current_time > task.last_update + self.task_started_timeout
):
to_delete.append(task)
self.log.warning(
self.log.error(
"Task %s is in Started state more than %d seconds. "
"Killed. (receiver: %s)",
task.uid,
Expand Down

0 comments on commit c7932af

Please sign in to comment.