pg_cron not running scheduled tasks

0

Recently had to terminate an SQL query "update cron.job_run_details" that was running indefintely on our RDS db, using SELECT pg_terminate_backend(<jobid>);

Since then, no cron jobs are running. I've taken a snapshot and restored a test instance, in which ive tried adding new cron jobs (such as vacuums every minute on a table) and it still does not work. I've rebooted the test instance to no effect. I wondering if the pg_chron extension works off a daemon and it I unwillingly terminated it and have no idea how to reboot it from RDS. Has anyone had similar issues?

2개 답변
0
수락된 답변

Turn out I had terminated the connection that was idle, and pg_cron does not automatically recreate the connection. What we had to do was delete the extension, recreate it and reboot the instance and now the cron jobs work as expected

답변함 9달 전
0

Hello.
Does cron not work even if you reconfigure it according to the steps in the following document?
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL_pg_cron.html

profile picture
전문가
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠