|
@@ -114,9 +114,7 @@ def check_monitors(current_datetime=None):
|
|
|
"monitor_environment.checkin-timeout",
|
|
|
extra={"monitor_environment_id": monitor_environment.id, "checkin_id": checkin.id},
|
|
|
)
|
|
|
- affected = MonitorCheckIn.objects.filter(
|
|
|
- id=checkin.id, status=CheckInStatus.IN_PROGRESS
|
|
|
- ).update(status=CheckInStatus.TIMEOUT)
|
|
|
+ affected = checkin.update(status=CheckInStatus.TIMEOUT)
|
|
|
if not affected:
|
|
|
continue
|
|
|
|