-
Notifications
You must be signed in to change notification settings - Fork 15
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
Atomic transaction for the migrate_transcripts
command
#1067
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -108,8 +108,17 @@ def enqueue_async_migrate_transcripts_tasks(course_keys, | |||
'command_run': command_run | |||
} | |||
|
|||
from django.db import transaction |
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.
should we keep imports together at the top of the file?
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.
In general yes. I this case, I'm planning to revert this hack entirely, so it's worth to keep everything in a single place.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cabde92
to
133df0a
Compare
This comment has been minimized.
This comment has been minimized.
133df0a
to
15c4f1e
Compare
This comment has been minimized.
This comment has been minimized.
- a course will either be successful or will fail in one atomic SQL transaction. - a course failure will be logged, then continue for next course - ItemNotFoundError will be ignored seperately from other errors since it's usually means that we have some other problem that the `migrate_transcripts` command shouldn't worry about
15c4f1e
to
d83e6c4
Compare
Checking git merge conflicts against https://github.com/edx/edx-platform.git
|
A course will either be successful or will fail in one atomic SQL transaction.
Jira: RED-2483.
TODO