Skip to content

Commit

Permalink
Merge pull request #115 from coddingtonbear/add_development_mode_flag
Browse files Browse the repository at this point in the history
Add a development mode flag.
  • Loading branch information
ralphbean committed Apr 9, 2014
2 parents a9519a8 + 8187b57 commit 7a4dd8d
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions bugwarrior/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,25 @@ def aggregate_issues(conf):
log.name('bugwarrior').info("Spawning %i workers." % len(targets))
processes = []

for target in targets:
proc = multiprocessing.Process(
target=_aggregate_issues,
args=(conf, target, queue, conf.get(target, 'service'))
)
proc.start()
processes.append(proc)
if (
conf.has_option('general', 'development')
and asbool(conf.get('general', 'development'))
):
for target in targets:
_aggregate_issues(
conf,
target,
queue,
conf.get(target, 'service')
)
else:
for target in targets:
proc = multiprocessing.Process(
target=_aggregate_issues,
args=(conf, target, queue, conf.get(target, 'service'))
)
proc.start()
processes.append(proc)

currently_running = len(targets)
while currently_running > 0:
Expand Down

0 comments on commit 7a4dd8d

Please sign in to comment.