From f993dd2edfa9a460c163f060a4a32cf768aa4ef9 Mon Sep 17 00:00:00 2001 From: Matt Craddock <5796417+craddm@users.noreply.github.com> Date: Thu, 1 Feb 2024 11:05:42 +0000 Subject: [PATCH] modify timing of comment cron job --- .../cloud_init/cloud-init-postgres.mustache.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/secure_research_environment/cloud_init/cloud-init-postgres.mustache.yaml b/deployment/secure_research_environment/cloud_init/cloud-init-postgres.mustache.yaml index 802b2d606e..cdbbb62b41 100644 --- a/deployment/secure_research_environment/cloud_init/cloud-init-postgres.mustache.yaml +++ b/deployment/secure_research_environment/cloud_init/cloud-init-postgres.mustache.yaml @@ -64,7 +64,8 @@ write_files: permissions: "0644" content: | # Trigger role updates every 10 minutes by writing a comment to the data schema - */10 * * * * postgres /usr/bin/psql -q -c "comment on schema data is 'Data schema can only be modified by Data Admins or System Admins';" + # Run at 1, 11, 21, 31, 41, 51 minutes past the hour so always after the user sync + 1-59/10 * * * * postgres /usr/bin/psql -q -c "comment on schema data is 'Data schema can only be modified by Data Admins or System Admins';" - path: "/etc/cron.d/runonce" permissions: "0644"