Skip to content

Commit

Permalink
Add cron scripts - update command so that it can pull config from pro…
Browse files Browse the repository at this point in the history
…per 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 <[email protected]>

* Update .github/workflows/manual_corp_user_group_sync.yml

Co-authored-by: Zach Wolfenbarger <[email protected]>

* Update .github/workflows/manual_corp_user_group_sync.yml

Co-authored-by: Zach Wolfenbarger <[email protected]>

* Update .github/workflows/manual_corp_user_group_sync.yml

Co-authored-by: Zach Wolfenbarger <[email protected]>

* Update .github/workflows/manual_corp_user_group_sync.yml

Co-authored-by: Zach Wolfenbarger <[email protected]>

* Update manual_corp_user_group_sync.yml

* Update manual_corp_user_group_sync.yml

---------

Co-authored-by: Zach Wolfenbarger <[email protected]>
  • Loading branch information
yuenmichelle1 and zwolf authored Apr 19, 2024
1 parent d126704 commit 4cd0c8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kubernetes/manual_corp_user_group_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4cd0c8c

Please sign in to comment.