Skip to content

Commit

Permalink
Bug 1071577 - Moved result_set revision hash cache step to after asso…
Browse files Browse the repository at this point in the history
…ciated revision storage
  • Loading branch information
jeads committed Sep 24, 2014
1 parent d790879 commit 2c258f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions treeherder/model/derived/jobs.py
Expand Up @@ -2601,11 +2601,6 @@ def store_result_set_data(self, result_sets):

cache_data[key] = revision_hash

cache.set_many(
cache_data,
self.RESULT_SET_CACHE_TIMEOUT
)

# Insert new revisions
dhub.execute(
proc='jobs.inserts.set_revision',
Expand All @@ -2614,6 +2609,11 @@ def store_result_set_data(self, result_sets):
debug_show=self.DEBUG
)

cache.set_many(
cache_data,
self.RESULT_SET_CACHE_TIMEOUT
)

# Retrieve new revision ids
rev_where_in_clause = ','.join(rev_where_in_list)
select_proc = 'get_revision_ids'
Expand Down

0 comments on commit 2c258f4

Please sign in to comment.