[cli] Speed up run command

This commit is contained in:
amercader 2012-06-29 11:32:18 +01:00
parent 5df2b64dda
commit 4d00e665f1
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ def harvest_jobs_run(context,data_dict):
publisher = get_gather_publisher() publisher = get_gather_publisher()
sent_jobs = [] sent_jobs = []
for job in jobs: for job in jobs:
context['detailed'] = False
source = harvest_source_show(context,{'id':job['source']}) source = harvest_source_show(context,{'id':job['source']})
if source['active']: if source['active']:
publisher.send({'harvest_job_id': job['id']}) publisher.send({'harvest_job_id': job['id']})