Do not pass the channel name as parameter to LISTEN call in the queue

psycopg3 can not determine the data type.

Closes #14792
This commit is contained in:
Cédric Krier
2026-04-21 15:30:46 +02:00
parent 87efead8eb
commit dc2b32782a
+1 -1
View File
@@ -140,7 +140,7 @@ class Queue(ModelSQL):
seconds, = row
if not task_id and database.has_channel():
cursor.execute('LISTEN "%s"', (cls.__name__,))
cursor.execute('LISTEN "%s"' % cls.__name__)
return task_id, seconds
def run(self):