Do not pass the channel name as parameter to LISTEN call in the queue
psycopg3 can not determine the data type. Closes #14792 (grafted from 7fc8e6a10574c04a074f55a8a4e56ec4e07efb74) --HG-- branch : 8.0
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user