buildreporter: does not execute in a coroutine!
This commit is contained in:
parent
0d38e0b00b
commit
9ab3554226
2 changed files with 6 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
|||
import logging
|
||||
import boto
|
||||
import thread
|
||||
|
||||
from Queue import Queue
|
||||
from threading import Thread
|
||||
|
@ -12,10 +11,8 @@ def get_queue(app):
|
|||
"""
|
||||
Returns a queue to the CloudWatchSender. If a queue/sender do not exist, creates them.
|
||||
"""
|
||||
access_key = app.config.get('CLOUDWATCH_AWS_ACCESS_KEY')
|
||||
secret_key = app.config.get('CLOUDWATCH_AWS_SECRET_KEY')
|
||||
if None in (access_key, secret_key):
|
||||
raise TypeError
|
||||
access_key = app.config['CLOUDWATCH_AWS_ACCESS_KEY']
|
||||
secret_key = app.config['CLOUDWATCH_AWS_SECRET_KEY']
|
||||
|
||||
queue = Queue()
|
||||
sender = CloudWatchSender(queue, access_key, secret_key)
|
||||
|
|
Reference in a new issue