import multiprocessing

bind = "127.0.0.1:9000"

# Run cores * 4 + 1 workers in gunicorn
# This is set deliberately high in case of long Oracle transactions locking Django up
workers = multiprocessing.cpu_count() * 4 + 1
threads = multiprocessing.cpu_count() * 4

# Using gaiohttp because of the long blocking calls to the Oracle database
worker_class = "gaiohttp"

daemon = False

proc_name = "uclapi_gunicorn"

timeout = 600
import multiprocessing

bind = "127.0.0.1:9000"

# Run cores * 4 + 1 workers in gunicorn
# This is set deliberately high in case of long Oracle transactions locking Django up
workers = multiprocessing.cpu_count() * 4 + 1
threads = multiprocessing.cpu_count() * 4

# Using gaiohttp because of the long blocking calls to the Oracle database
worker_class = "gaiohttp"

daemon = False

proc_name = "uclapi_gunicorn"

timeout = 600
greaceful_timeout = 600

Update gunicorn graceful timeout value to match general timeout
Hotfix: Update gunicorn graceful timeout value to match general timeout

  import multiprocessing
  
  bind = "127.0.0.1:9000"
  
  # Run cores * 4 + 1 workers in gunicorn
  # This is set deliberately high in case of long Oracle transactions locking Django up
  workers = multiprocessing.cpu_count() * 4 + 1
  threads = multiprocessing.cpu_count() * 4
  
  # Using gaiohttp because of the long blocking calls to the Oracle database
  worker_class = "gaiohttp"
  
  daemon = False
  
  proc_name = "uclapi_gunicorn"
  
- timeout = 600
+ timeout = 600
+ greaceful_timeout = 600
+ 
Update gunicorn graceful timeout value to match general timeout
## Code Before:
import multiprocessing

bind = "127.0.0.1:9000"

# Run cores * 4 + 1 workers in gunicorn
# This is set deliberately high in case of long Oracle transactions locking Django up
workers = multiprocessing.cpu_count() * 4 + 1
threads = multiprocessing.cpu_count() * 4

# Using gaiohttp because of the long blocking calls to the Oracle database
worker_class = "gaiohttp"

daemon = False

proc_name = "uclapi_gunicorn"

timeout = 600
## Instruction:
Update gunicorn graceful timeout value to match general timeout
## Code After:
import multiprocessing

bind = "127.0.0.1:9000"

# Run cores * 4 + 1 workers in gunicorn
# This is set deliberately high in case of long Oracle transactions locking Django up
workers = multiprocessing.cpu_count() * 4 + 1
threads = multiprocessing.cpu_count() * 4

# Using gaiohttp because of the long blocking calls to the Oracle database
worker_class = "gaiohttp"

daemon = False

proc_name = "uclapi_gunicorn"

timeout = 600
greaceful_timeout = 600
