Skip to content

Commit f3293d9

Browse files
aalexanderrtdruez
andauthored
Add django-probes for wait_for_database (aboutcode-org#401)
This feature is nice-to-have for Kubernetes/OpenShift deployments making start up of app more streamlined by giving ability for app to wait for database to be up rather than crash until db is up. As per it's docs it supports all db engines that Django supports: https://pypi.org/project/django-probes/ License: BSD-3-Clause Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com> Co-authored-by: tdruez <489057+tdruez@users.noreply.github.com>
1 parent 239c1bb commit f3293d9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

scancodeio/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"rest_framework",
9393
"rest_framework.authtoken",
9494
"django_rq",
95+
"django_probes",
9596
)
9697

9798
MIDDLEWARE = (

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ install_requires =
5959
# Database
6060
psycopg2==2.9.3; sys_platform == "linux"
6161
psycopg2-binary==2.9.3; sys_platform != "linux"
62+
# wait_for_database Django management command
63+
django_probes==1.6.0
6264
# Task queue
6365
rq==1.10.1
6466
django-rq==2.5.1

0 commit comments

Comments
 (0)