class_docstr: Base class for monitoring Tasks on the system.
  Inherit to implement specific logic
class_docstr_tok: ["Base","class","for","monitoring","Tasks","on","the","system",".","Inherit","to","implement","specific","logic"]
docstr: # type: (Task) -> ()
  Abstract function
  
  Called on every Task that we monitor. For example, monitoring failed Task,
  will call this Task the first time the Task was detected as failed.
  
  :return: None
docstr_tok: ["#","type",":","(","Task",")","-",">","(",")","Abstract","function","Called","on","every","Task","that","we","monitor",".","For","example",",","monitoring","failed","Task",",","will","call","this","Task","the","first","time","the","Task","was","detected","as","failed",".",":","return",":","None"]
code: def process_task(self, task):
      """
      # type: (Task) -> ()
      Abstract function
  
      Called on every Task that we monitor. For example, monitoring failed Task,
      will call this Task the first time the Task was detected as failed.
  
      :return: None
      """
      pass
  
file_path: clearml/clearml/automation/monitor.py
imports: from datetime import datetime
  from time import time, sleep
  from typing import Optional, Sequence
  from ..backend_api.session.client import APIClient
  from ..backend_interface.util import exact_match_regex
  from ..task import Task
label_desc: Use image node_id 7 for calling the Monitor obj's underlying member method code with example usage: obj.process_task(task) without return types