-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release #2747
Release #2747
Changes from all commits
f686afd
5743e4f
48d08e9
1366105
f8eed39
5723188
696f62e
4f9a577
5de9e16
1ba8f24
d0c8032
19cce15
2bdcc43
26c82ee
3fe6865
c44d13d
47af018
985aef5
c2abf45
cc001de
fb9463e
b4f6131
bde4d1c
756fbf3
e1ae921
ca47c34
4df9bc7
a43cb3e
a3cb351
89141a9
191d79f
0051b77
eec445b
61dc81f
7fc61c5
ebc7889
6cafc46
ad437c7
975a3c2
e11db92
8793ebd
cb9e8e8
f9e3790
b54f249
7ceefc4
91a6154
351009f
6305457
1d978d7
911f888
ff4cba9
0d71b7d
57d9909
0433fdb
ede5109
0fd8564
7f8518b
a0242a2
b75b02b
7e91237
fa698f7
9d4fd67
5972723
68c2f86
ba8e7c2
1a23033
89cf8c6
94f419f
8ee4c03
c2939f8
07e6ade
0634e91
7f88df2
6c93da7
cbe0344
95d6e7a
9dea006
57d9c2a
b372e98
56e91a2
5d40668
4648b95
11c369b
dfa48d5
ee412ef
3e96aac
daa2a52
55b9a2e
a338ef7
31b42c7
7410274
da5c321
a8853fd
bc8aee8
2d43778
48e93be
3b7f2ef
9d85d24
64c4196
d6a6fc7
2667f0d
bc90a32
02d3298
1e589bb
99f2db1
1ac54ca
e608c69
44faf3d
96111b5
4170f96
e81e5ea
de1e287
9b838d0
7c80774
4b1fc72
cf6a741
f68efd5
f8dd6ca
347af34
ee7e226
13dbb88
df230e2
ffbac7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
# from augur import ROOT_AUGUR_DIRECTORY | ||
import multiprocessing | ||
import logging | ||
import os | ||
from pathlib import Path | ||
from glob import glob | ||
import shutil | ||
|
||
from augur.application.db.session import DatabaseSession | ||
from augur.application.config import AugurConfig | ||
from augur.application.db.lib import get_value, get_section | ||
from augur.application.db import dispose_database_engine | ||
|
||
logger = logging.getLogger(__name__) | ||
with DatabaseSession(logger) as session: | ||
|
||
augur_config = AugurConfig(logger, session) | ||
|
||
|
||
# ROOT_AUGUR_DIRECTORY = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) | ||
|
||
# base_log_dir = ROOT_AUGUR_DIRECTORY + "/logs/" | ||
# ROOT_AUGUR_DIRECTORY = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) | ||
|
||
# base_log_dir = ROOT_AUGUR_DIRECTORY + "/logs/" | ||
|
||
# Path(base_log_dir).mkdir(exist_ok=True) | ||
|
||
# Path(base_log_dir).mkdir(exist_ok=True) | ||
workers = multiprocessing.cpu_count() * 2 + 1 | ||
umask = 0o007 | ||
reload = True | ||
reload_extra_files = glob(str(Path.cwd() / '**/*.j2'), recursive=True) | ||
|
||
workers = multiprocessing.cpu_count() * 2 + 1 | ||
umask = 0o007 | ||
reload = True | ||
reload_extra_files = glob(str(Path.cwd() / '**/*.j2'), recursive=True) | ||
# set the log location for gunicorn | ||
logs_directory = get_value('Logging', 'logs_directory') | ||
accesslog = f"{logs_directory}/gunicorn.log" | ||
errorlog = f"{logs_directory}/gunicorn.log" | ||
|
||
# set the log location for gunicorn | ||
logs_directory = augur_config.get_value('Logging', 'logs_directory') | ||
accesslog = f"{logs_directory}/gunicorn.log" | ||
errorlog = f"{logs_directory}/gunicorn.log" | ||
ssl_bool = get_value('Server', 'ssl') | ||
|
||
if ssl_bool is True: | ||
|
||
workers = int(get_value('Server', 'workers')) | ||
bind = '%s:%s' % (get_value("Server", "host"), get_value("Server", "port")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
timeout = int(get_value('Server', 'timeout')) | ||
certfile = str(get_value('Server', 'ssl_cert_file')) | ||
keyfile = str(get_value('Server', 'ssl_key_file')) | ||
|
||
else: | ||
workers = int(get_value('Server', 'workers')) | ||
bind = '%s:%s' % (get_value("Server", "host"), get_value("Server", "port")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
timeout = int(get_value('Server', 'timeout')) | ||
|
||
ssl_bool = augur_config.get_value('Server', 'ssl') | ||
|
||
if ssl_bool is True: | ||
def worker_exit(server, worker): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
print("Stopping gunicorn worker process") | ||
dispose_database_engine() | ||
|
||
workers = int(augur_config.get_value('Server', 'workers')) | ||
bind = '%s:%s' % (augur_config.get_value("Server", "host"), augur_config.get_value("Server", "port")) | ||
timeout = int(augur_config.get_value('Server', 'timeout')) | ||
certfile = str(augur_config.get_value('Server', 'ssl_cert_file')) | ||
keyfile = str(augur_config.get_value('Server', 'ssl_key_file')) | ||
|
||
else: | ||
workers = int(augur_config.get_value('Server', 'workers')) | ||
bind = '%s:%s' % (augur_config.get_value("Server", "host"), augur_config.get_value("Server", "port")) | ||
timeout = int(augur_config.get_value('Server', 'timeout')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
C0114: Missing module docstring (missing-module-docstring)