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

Reindexing when no metrics is available #80

Open
spacemansteve opened this issue Feb 1, 2019 · 0 comments
Open

Reindexing when no metrics is available #80

spacemansteve opened this issue Feb 1, 2019 · 0 comments
Assignees

Comments

@spacemansteve
Copy link
Contributor

spacemansteve commented Feb 1, 2019

The nonbib/data pipeline always send both nonbib and metrics. For zndo-related bibcodes from asclepias, we do not have metrics data. This lack of metrics data is generates an exception during the metrics phase of the index task.

Task=1194b781-e361-40c7-aed9-3b6f968223de failed.
args=[[u'2017zndo....292632C', u'2018zndo...1146705C', u'2018zndo...1230529C']]
kwargs={u'update_solr': True, u'update_metrics': True, u'force': True, u'update_links': True, u'ignore_checksums': True}
trace=Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 375, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 632, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/adsmp/tasks.py", line 177, in task_index_records
    m['bibcode'] = bibcode
TypeError: 'NoneType' object does not support item assignment```
@spacemansteve spacemansteve self-assigned this Feb 1, 2019
spacemansteve pushed a commit to spacemansteve/ADSMasterPipeline that referenced this issue Feb 5, 2019
spacemansteve added a commit that referenced this issue Feb 11, 2019
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

No branches or pull requests

1 participant