Skip to content

Commit 37f3d33

Browse files
committed
daisy: always call 'setup_cassandra()', even when called from 'gunicorn'
1 parent 97f4577 commit 37f3d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daisy/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from daisy.submit_core import submit_core
66
from errortracker import cassandra, config
77

8+
cassandra.setup_cassandra()
89
config.logger.addHandler(default_handler)
910
app = Flask(__name__)
1011

@@ -20,7 +21,6 @@ def handle_submit_core(oopsid, architecture, system_token):
2021

2122

2223
def __main__():
23-
cassandra.setup_cassandra()
2424
app.run(host="0.0.0.0", debug=True)
2525

2626

0 commit comments

Comments
 (0)