diff --git a/aws/lambda/pytorch-auto-revert/pytorch_auto_revert/autorevert_circuit_breaker.py b/aws/lambda/pytorch-auto-revert/pytorch_auto_revert/autorevert_circuit_breaker.py index 08be47a1e2..296a349cfa 100644 --- a/aws/lambda/pytorch-auto-revert/pytorch_auto_revert/autorevert_circuit_breaker.py +++ b/aws/lambda/pytorch-auto-revert/pytorch_auto_revert/autorevert_circuit_breaker.py @@ -38,15 +38,6 @@ def check_autorevert_disabled(repo_full_name: str = "pytorch/pytorch") -> bool: ) should_disable = True - sev_issues = repo.get_issues(state="open", labels=["ci: sev"]) - for issue in sev_issues: - logger.info( - f"Found open issue #{issue.number} with 'ci: sev' label " - f"created by user {issue.user.login}. " - f"Autorevert circuit breaker is ACTIVE." - ) - should_disable = True - if should_disable: return True