Skip to content

Commit 148dfa4

Browse files
committed
imp: wait for psql
1 parent d7ae96b commit 148dfa4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ You can also use ```FOCONF__{section}__{Param Name}``` to read the value from a
7171
| EXT_DEPS_OVERRIDES | Overrides for the dependency names (old_name:new_name) separated by commas (Only useful if AUTO_DOWNLOAD_DEPENDENCIES is used) | No | "" |
7272
| VERIFY_MISSING_MODULES | Indicates whether all modules (and other modules on which it depends) are available | No | True |
7373
| AUTO_FILL_REPOS | Indicates whether repos.yaml should be adjusted to match what is used in addons.yaml (OCA repositories only) | No | True |
74-
| PSQL_WAIT_TIMEOUT | Timeout to wait for the database | No | 30 |
74+
| PSQL_WAIT_TIMEOUT | Timeout to wait for the database (0 disables psql check) | No | 30 |
7575
| OPENERP_SERVER | Indicates the location of the Odoo configuration file (version 9.0 and older) | No | /etc/odoo/odoo.auto.conf |
7676
| ODOO_RC | Indicates the location of the Odoo configuration file (10.0+) | No | /etc/odoo/odoo.auto.conf |
7777

tools/wait_for_psql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
args = arg_parser.parse_args()
1717

18+
if args.timeout == 0:
19+
sys.exit(0)
20+
1821
start_time = time.time()
1922
while (time.time() - start_time) < args.timeout:
2023
try:

0 commit comments

Comments
 (0)