We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa17dd commit aaaae02Copy full SHA for aaaae02
core/data/impl/nodeimpl.py
@@ -668,8 +668,8 @@ def has_timeout(row: dict, timeout: int):
668
SELECT c.master, c.version, c.update_pending, n.node
669
FROM cluster c LEFT OUTER JOIN nodes n
670
ON c.guild_id = n.guild_id AND c.master = n.node
671
- WHERE c.guild_id = %s
672
AND n.last_seen > (NOW() AT TIME ZONE 'UTC' - interval '1 minute')
+ WHERE c.guild_id = %s
673
""", (self.guild_id, ))
674
cluster = await cursor.fetchone()
675
# No master there? we take it!
0 commit comments