Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i121-script-to-move-records #834

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

aprilrieger
Copy link
Collaborator

@aprilrieger aprilrieger commented Feb 22, 2024

First pass at adding the script, need to make sure the paths work on demo aka prod env

in your terminal enter a screen process with screen -xRR

You will need to transfer the txt file from the client to the worker pod in the k8 cluster
k cp /Users/aprilrieger/softserv/ams/NJN_forupdates_txt.txt worker-pod-name:/tmp/imports/NJN_forupdates_txt.txt

Then drop into a rails console rails c

Then run the job and pass the path of the file: PriorityImportsJob.perform_now('tmp/imports/NJN_forupdates_txt.txt')

Once the job is completed you will need to create an importer from a path and add the path to the folder (the name of the filename, example: NJN_forupdates_txt)

git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant