|
@@ -5,11 +5,16 @@ bind = '0.0.0.0:8349'
|
|
|
workers = os.environ.get("WORKERS", "2")
|
|
|
timeout = os.environ.get("TIMEOUT", "180")
|
|
|
preload_app = True
|
|
|
+enable_stdio_inheritance = True
|
|
|
+loglevel = 'debug'
|
|
|
+accesslog = '-'
|
|
|
+pidfile = "app.pid"
|
|
|
+
|
|
|
def on_starting(server):
|
|
|
worker_count = int(workers)
|
|
|
|
|
|
- # Insert a 2-second gap between workers
|
|
|
- gap_duration = 2
|
|
|
+ # Insert a 1-second gap between workers
|
|
|
+ gap_duration = 1
|
|
|
|
|
|
for i in range(worker_count):
|
|
|
# Add a delay between each worker
|