Update job keys changed on 9ba6e8f
This commit is contained in:
parent
30d58b2b7b
commit
daa9a385ff
|
@ -318,7 +318,7 @@ class Harvester(CkanCommand):
|
||||||
def print_harvest_job(self, job):
|
def print_harvest_job(self, job):
|
||||||
print ' Job id: %s' % job['id']
|
print ' Job id: %s' % job['id']
|
||||||
print ' status: %s' % job['status']
|
print ' status: %s' % job['status']
|
||||||
print ' source: %s' % job['source']
|
print ' source: %s' % job['source_id']
|
||||||
print ' objects: %s' % len(job['objects'])
|
print ' objects: %s' % len(job['objects'])
|
||||||
|
|
||||||
print 'gather_errors: %s' % len(job['gather_errors'])
|
print 'gather_errors: %s' % len(job['gather_errors'])
|
||||||
|
|
|
@ -236,7 +236,7 @@ def harvest_jobs_run(context,data_dict):
|
||||||
sent_jobs = []
|
sent_jobs = []
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
context['detailed'] = False
|
context['detailed'] = False
|
||||||
source = harvest_source_show(context,{'id':job['source']})
|
source = harvest_source_show(context,{'id':job['source_id']})
|
||||||
if source['active']:
|
if source['active']:
|
||||||
job_obj = HarvestJob.get(job['id'])
|
job_obj = HarvestJob.get(job['id'])
|
||||||
job_obj.status = job['status'] = u'Running'
|
job_obj.status = job['status'] = u'Running'
|
||||||
|
|
Loading…
Reference in New Issue