chore: remove pv external and only append -DEV suffix on service internal PVs (#11)
Deploy / deploy (push) Failing after 1s
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:
Vendored
+3
-3
@@ -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()
|
||||
|
||||
|
||||
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user