mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
feat: port monitoring_status to 18.0
This commit is contained in:
@@ -61,6 +61,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
INCLUDE: "${{ matrix.include }}"
|
INCLUDE: "${{ matrix.include }}"
|
||||||
EXCLUDE: "${{ matrix.exclude }}"
|
EXCLUDE: "${{ matrix.exclude }}"
|
||||||
|
# Disable Redis check
|
||||||
|
ODOO_CLOUD_PLATFORM_UNSAFE: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ class CloudPlatform(models.AbstractModel):
|
|||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def check(self):
|
def check(self):
|
||||||
|
if is_true(os.environ.get("ODOO_CLOUD_PLATFORM_UNSAFE")):
|
||||||
|
_logger.warning("cloud platform checks disabled, this is not safe")
|
||||||
|
return
|
||||||
environment_name = self._get_running_env()
|
environment_name = self._get_running_env()
|
||||||
self._check_redis(environment_name)
|
self._check_redis(environment_name)
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Monitoring: Status",
|
"name": "Monitoring: Status",
|
||||||
"version": "17.0.1.0.0",
|
"version": "18.0.1.0.0",
|
||||||
"author": "Camptocamp,Odoo Community Association (OCA)",
|
"author": "Camptocamp,Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "category",
|
"category": "category",
|
||||||
"depends": ["base", "web"],
|
"depends": ["base", "web"],
|
||||||
"website": "https://github.com/camptocamp/odoo-cloud-platform",
|
"website": "https://github.com/camptocamp/odoo-cloud-platform",
|
||||||
"data": [],
|
"data": [],
|
||||||
"installable": False,
|
"installable": True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import werkzeug
|
|||||||
|
|
||||||
from odoo import http
|
from odoo import http
|
||||||
|
|
||||||
from odoo.addons.web.controllers.main import ensure_db
|
from odoo.addons.web.controllers.utils import ensure_db
|
||||||
|
|
||||||
|
|
||||||
class HealthCheckFilter(logging.Filter):
|
class HealthCheckFilter(logging.Filter):
|
||||||
|
|||||||
Reference in New Issue
Block a user