05/06 Fix some notable and quality issues
This commit is contained in:
+4
-1
@@ -110,9 +110,12 @@ def send_sla_alerts():
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# yield_per streams rows in batches of 100 rather than loading all open
|
||||
# issues into memory at once. At current scale this is a no-op difference,
|
||||
# but it prevents a memory spike if the issue count grows large.
|
||||
open_issues = Issue.query.filter(
|
||||
Issue.status.in_(['open', 'in_progress', 'pending_verification'])
|
||||
).all()
|
||||
).yield_per(100)
|
||||
|
||||
total_sent = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user