Get age of this status update in seconds. Returns: Seconds since last update
(self)
| 198 | return (time.time() - self.updated_at) > timeout_seconds |
| 199 | |
| 200 | def get_age_seconds(self) -> float: |
| 201 | """Get age of this status update in seconds. |
| 202 | |
| 203 | Returns: |
| 204 | Seconds since last update |
| 205 | """ |
| 206 | return time.time() - self.updated_at |
| 207 | |
| 208 | |
| 209 | class BuildCommand(Enum): |