From 4cd0c8cd07a5894d5308507f87088db606a2497e Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Fri, 19 Apr 2024 12:32:48 -0500 Subject: [PATCH] Add cron scripts - update command so that it can pull config from proper directory (#60) * update comments on backfill scripts to give context of what previous scripts where used for * adding comments for context on old scripts * update backfill script in ruby * update env variables to use Rails.app.credentials. attempt at cron job kubernetes template * Update cron_sync.yml * Update user_group_membership_classification_backfill.py * update panoptes_membership_client.rb to create insert query using array.new vs times.map per hound * adding a more descriptive comment insert query * add manual sync * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update manual_corp_user_group_sync.yml * Update manual_corp_user_group_sync.yml --------- Co-authored-by: Zach Wolfenbarger --- kubernetes/manual_corp_user_group_sync.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/manual_corp_user_group_sync.yml b/kubernetes/manual_corp_user_group_sync.yml index 97b284d..df55c2a 100644 --- a/kubernetes/manual_corp_user_group_sync.yml +++ b/kubernetes/manual_corp_user_group_sync.yml @@ -20,6 +20,9 @@ spec: secretKeyRef: name: eras-production key: rails-master-key - command: ['ruby', './scripts/user_group_membership_classification_backfill.rb'] + command: + - /bin/sh + - -c + - cd scripts; ruby user_group_membership_classification_backfill.rb restartPolicy: Never backoffLimit: 2