chore: remove pv external and only append -DEV suffix on service internal PVs (#11)
Deploy / deploy (push) Failing after 1s

Use service name to determine whether to use dev or prod PVs in dev environment

---------

Co-authored-by: Benjamin Labrecque <labrecque.benji@gmail.com>
Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
2026-07-24 09:37:03 +02:00
co-authored by Benjamin Labrecque
parent f13bb368e6
commit e098f8b019
43 changed files with 2312 additions and 2781 deletions
@@ -4,6 +4,7 @@ from agebd.enums import LogLevel
from agebd.runner import CallbackRunner
from agebd.utils import init_logging
from agebd_test_service import PVs, Service
from agebd_test_service.service import SERVICE_NAME
def main(
@@ -18,9 +19,8 @@ def main(
),
):
init_logging(log_level)
service_name = "TEST-SERVICE"
pvs = PVs(service_name=service_name)
service = Service(name=service_name, pvs=pvs)
pvs = PVs(service_name=SERVICE_NAME)
service = Service(name=SERVICE_NAME, pvs=pvs)
runner = CallbackRunner(service=service)
runner.start()
@@ -9,7 +9,8 @@ from agebd.utils import printgetversion
__version__ = printgetversion(__file__)
PV = get_pv_class()
SERVICE_NAME = "TEST-SERVICE"
PV = get_pv_class(service_name=SERVICE_NAME)
class PVs(BasePVs):