Skip to content

Commit

Permalink
update cron yml so that script can properly reference config (#61)
Browse files Browse the repository at this point in the history
* 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

* update cron yml to properly pull config

---------

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

Please sign in to comment.