fix job reporting to have job finished timestamp when there was zero datasets to gather
This commit is contained in:
parent
97f09913cf
commit
f6c1456abe
|
@ -317,6 +317,8 @@ def harvest_jobs_run(context,data_dict):
|
||||||
.first()
|
.first()
|
||||||
if last_object:
|
if last_object:
|
||||||
job_obj.finished = last_object.import_finished
|
job_obj.finished = last_object.import_finished
|
||||||
|
else:
|
||||||
|
job.obj.finished = job['gather_finished']
|
||||||
job_obj.save()
|
job_obj.save()
|
||||||
# Reindex the harvest source dataset so it has the latest
|
# Reindex the harvest source dataset so it has the latest
|
||||||
# status
|
# status
|
||||||
|
|
Loading…
Reference in New Issue