Skip to content

Commit

Permalink
always ingest the most recent raw for a suid
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Feb 10, 2021
1 parent 04ad89b commit 55b50b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,13 @@ def _consume_job(self, job, superfluous, force, apply_changes=True, index=True,
datum = None
graph = None

most_recent_raw = job.suid.most_recent_raw_datum()

# Check whether we've already done transform/regulate
if not superfluous:
datum = job.ingested_normalized_data.order_by('-created_at').first()
datum = job.ingested_normalized_data.filter(raw=most_recent_raw).order_by('-created_at').first()

if superfluous or datum is None:
most_recent_raw = job.suid.most_recent_raw_datum()

graph = self._transform(job, most_recent_raw)
if not graph:
return
Expand Down

0 comments on commit 55b50b5

Please sign in to comment.