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

Calls to mark_processed do not use the solr/metrics/links field #76

Open
marblestation opened this issue Dec 28, 2018 · 1 comment
Open
Assignees

Comments

@marblestation
Copy link
Contributor

There are several calls to mark_processed without type here:

self.mark_processed(failed_bibcodes, type=None, status='solr-failed')

which does not mark the right processed field in the database (e.g., solr, metrics or links processed fields). Is this the intended behavior?

@romanchyla
Copy link
Contributor

if the type is empty, it will update 'processed' timestamp, otherwise it updates specific timetamps

the specific column timestamps are used for tracking, the main timestamp (the one that is used by the code to decide whether something was already tried) is the processed

so it makes sense if mark_processed is called with type=None from several places

it would make sense if it was called twice (or multiple times) for a bibcode, e.g.

  1. type=solr
  2. type=metrics
  3. type=None

what would not make sense, if a particular bibcode was mark_processed several times with the same type set (i.e. the bibcode be present in multiple sets)

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

3 participants