-
Notifications
You must be signed in to change notification settings - Fork 5
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
records: added external doi support #20
Conversation
src/lycophron/tasks/tasks.py
Outdated
if doi: | ||
metadata["doi"] = doi | ||
|
||
# TODO implement a serializer to Zenodo |
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 should be a serializer to Zenodo .
src/lycophron/tasks/tasks.py
Outdated
# db.update_record_status(doi, "DEPOSIT_CREATED") | ||
|
||
# TODO uncomment when MemoryError is fixed | ||
# db.update_record_status(record_id, "DEPOSIT_CREATED") |
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.
Interacting with the DB inside a celery task raises a MemoryError
. This is important because there's no "status" for each record right now. We're blindly uploading the records.
This is bad because e.g. some records might already been uploaded and we do not want to upload them again.
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.
Opened an issue (#21)
|
closes #19