feeder: set deadlock_timeout to 10 seconds (#54658)

It makes wcs-olap always win in a deadlock with another client.
This commit is contained in:
Benjamin Dauvergne 2021-06-08 17:24:52 +02:00
parent ee4bcadcc0
commit c74766bf2c
1 changed files with 1 additions and 0 deletions

View File

@ -602,6 +602,7 @@ class WcsOlapFeeder(object):
self.ex('COMMENT ON TABLE {generic_evolution_table} IS %s', vars=('evolution générique',))
def feed(self):
self.ex("SET deadlock_timeout = '10s'")
try:
if self.do_feed:
self.do_schema()