fix: catch CursorNotFound and AutoReconnect in apply migrations job

Pavel Kuzmenko requested to merge kpn/fix_job_migration into master

Merge request reports