소스 검색

Removes unknown attribute Element.visited

Ask Solem 14 년 전
부모
커밋
1a3682c7bc
2개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 2
      celery/events/cursesmon.py
  2. 0 1
      celery/events/state.py

+ 0 - 2
celery/events/cursesmon.py

@@ -310,8 +310,6 @@ class CursesMonitor(object):
             self.win.addstr(lineno,
                             len(line) - STATE_WIDTH + BORDER_SPACING - 1,
                             task.state, state_color | attr)
-        if task.ready:
-            task.visited = time.time()
 
     def draw(self):
         win = self.win

+ 0 - 1
celery/events/state.py

@@ -14,7 +14,6 @@ HEARTBEAT_EXPIRE = 150                      # 2 minutes, 30 seconds
 
 class Element(AttributeDict):
     """Base class for types."""
-    visited = False
 
     def __init__(self, **fields):
         dict.__init__(self, fields)