If postgresql database is temporarly down, the cron thread may fail. The cursor creation fails when trying to connect to the server which leads to the cron thread to die (uncatched exception) and will not restart when postgres is back. Fixes #15666
4de3f4c4ba
f4cb884
edbd0df