-
Notifications
You must be signed in to change notification settings - Fork 7
automatic harvest #4
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
Conversation
Signed-off-by: Peter Weber <Peter.Weber@rero.ch> Co-authored-by: Bertrand Zuchuat <Bertrand.Zuchuat@rero.ch>
Signed-off-by: Peter Weber <Peter.Weber@rero.ch>
Signed-off-by: Peter Weber <Peter.Weber@rero.ch>
cfe03d9
to
12dbba5
Compare
rero_ebooks/tasks.py
Outdated
@@ -31,19 +29,3 @@ def create_records(records, verbose=False): | |||
if verbose: | |||
click.echo('record uuid: ' + str(rec.id) + ' | ' + status) |
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.
use current_app.logger.info
instead.
scripts/setup
Outdated
@@ -29,3 +29,8 @@ invenio oaiharvester initconfig data/oaisources.yml | |||
dojson -l marcxml -i data/ebooks.xml do cantookmarc21 | invenio records create_or_update --vendor cantook | |||
# invenio index reindex -t ebook --yes-i-know | |||
# invenio index run | |||
|
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.
to be removed, but where is invenio oaiharvester initconfig
?
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.
Was already there:
invenio oaiharvester initconfig data/oaisources.yml
Signed-off-by: Peter Weber <Peter.Weber@rero.ch>
12dbba5
to
6dc27d7
Compare
Add scheduler to kubernetes and docker-compose. |
For the automatic harvest CELERY and BEAT must be started:
./scripts/worker_beat