File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 or ``False`` if unset.
3636 - ``ODOO_QUEUE_JOB_JOBRUNNER_DB_PORT=5432``, default ``db_port``
3737 or ``False`` if unset.
38+ - ``ODOO_QUEUE_JOB_JOBRUNNER_DB_USER=userdb``, default ``db_user``
39+ or ``False`` if unset.
40+ - ``ODOO_QUEUE_JOB_JOBRUNNER_DB_PASSWORD=passdb``, default ``db_password``
41+ or ``False`` if unset.
3842
3943* Alternatively, configure the channels through the Odoo configuration
4044 file, like:
5054 http_auth_password = s3cr3t
5155 jobrunner_db_host = master-db
5256 jobrunner_db_port = 5432
57+ jobrunner_db_user = userdb
58+ jobrunner_db_password = passdb
5359
5460* Or, if using ``anybox.recipe.odoo``, add this to your buildout configuration:
5561
@@ -187,7 +193,7 @@ def _odoo_now():
187193def _connection_info_for (db_name ):
188194 db_or_uri , connection_info = odoo .sql_db .connection_info_for (db_name )
189195
190- for p in ("host" , "port" ):
196+ for p in ("host" , "port" , "user" , "password" ):
191197 cfg = os .environ .get (
192198 "ODOO_QUEUE_JOB_JOBRUNNER_DB_%s" % p .upper ()
193199 ) or queue_job_config .get ("jobrunner_db_" + p )
You can’t perform that action at this time.
0 commit comments