-
Notifications
You must be signed in to change notification settings - Fork 5
[DT-1654] Add scripts #1975
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
base: develop
Are you sure you want to change the base?
[DT-1654] Add scripts #1975
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect these files to be excluded by the .gitignore
entry
tools/migrateInheritSteward/*.json
If you add a file that is later .gitignore'd then any further changes won't be picked up, so this doesn't seem correct. Having an example input seems like a good idea, but it could be added in a comment in the script instead of committed as a file.
print(f"Waiting for job {job_model.id} to finish") | ||
result = clients.jobs_api.retrieve_job(job_model.id) | ||
elif result.job_status == "failed": | ||
print(job_model.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for debugging? Or should it have a Failed message?
print(job_model.id) | |
print(f"Job {job_model.id} failed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good, do we want to make the script more resilient to ignore snapshots that can't be migrated and just migrate those that can, so users can get some benefit
Jira ticket: https://broadworkbench.atlassian.net/browse/dt-1654
Addresses
Summary of changes
Testing Strategy