Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Sleep so we can take it easy on gpg-agent.
  • Loading branch information
ralphbean committed Aug 19, 2014
1 parent de00710 commit a531f3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bugwarrior/services/__init__.py
Expand Up @@ -497,6 +497,12 @@ def aggregate_issues(conf):
proc.start()
processes.append(proc)

# Sleep for 1 second here to try and avoid a race condition where
# all N workers start up and ask the gpg-agent process for
# information at the same time. This causes gpg-agent to fumble
# and tell some of our workers some incomplete things.
time.sleep(1)

currently_running = len(targets)
while currently_running > 0:
issue = queue.get(True)
Expand Down

0 comments on commit a531f3a

Please sign in to comment.