Store the job's project refresh if it happened

* Create a field on the job to track this
* Add a summarizeable model to the summarizable fk fields so we can
  pull that in where needed
This commit is contained in:
Matthew Jones
2016-11-21 14:10:25 -05:00
parent 06510ce4b9
commit 9d044c1f41
4 changed files with 34 additions and 1 deletions
+1
View File
@@ -1025,6 +1025,7 @@ class RunJob(BaseTask):
try:
project_update_task().run(local_project_sync.id)
job.scm_revision = job.project.scm_revision
job.project_update = local_project_sync
job.save()
except Exception:
job.status = 'failed'