Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Dec 5, 2024
1 parent 42a2fcc commit 6797902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/worker/task_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def drop_container_and_check_status(self):
self.logger.debug("Founded error report.", extra=last_report)

instance_type = self.info.get("instance_type", "")
timeout = self.info.get("activeDeadlineSeconds", None)
timeout = self.info.get("activeDeadlineSeconds", 0)
if timeout > 0 and (status == 124 or status == 137):
msg = f"Task deadline exceeded. This task is only allowed to run for {timeout} seconds."
if instance_type == "community":
Expand Down

0 comments on commit 6797902

Please sign in to comment.