SIENTIAPDE-1646

Update values.yaml and worker.py for runtime installation logic

- Updated helm upgrade command version in values.yaml from 0.6.1 to 0.6.5 for deployment reference.
- Modified worker.py to adjust runtime installation logic, ensuring 'legacy' runtime is set to 'single' for compatibility.
This commit is contained in:
vitor-aignosi
2026-05-25 14:39:19 -03:00
parent 6c4095825d
commit e53e792e79
2 changed files with 8 additions and 3 deletions

View File

@@ -141,10 +141,15 @@ async def main():
metrics_controller=metrics_controller, metrics_controller=metrics_controller,
) )
if runtime == 'legacy':
to_install_runtime = 'single'
else:
to_install_runtime = runtime
try: try:
await plugin_store.install_runtime(runtime_name=runtime, metadata=metadata_runtime) await plugin_store.install_runtime(runtime_name=to_install_runtime, metadata=metadata_runtime)
except Exception as exc: except Exception as exc:
logger.custom_critical(f'Failed to install runtime {runtime}: {exc}', metadata_runtime) logger.custom_critical(f'Failed to install runtime {to_install_runtime}: {exc}', metadata_runtime)
metrics.APP_UP.labels(pod_id=POD_ID).set(0) metrics.APP_UP.labels(pod_id=POD_ID).set(0)
sys.exit(1) sys.exit(1)

View File

@@ -305,7 +305,7 @@ ssh:
# kubectl create secret docker-registry docker-hub-secret --namespace sientia --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=<pwd> # kubectl create secret docker-registry docker-hub-secret --namespace sientia --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=<pwd>
# #
# helm upgrade --install sientia-laborious-worker sientia/sientia-module -n sientia --create-namespace -f ./values.yaml --version 0.6.1 # helm upgrade --install sientia-laborious-worker sientia/sientia-module -n sientia --create-namespace -f ./values.yaml --version 0.6.5
# #
# kubectl create secret generic git-ssh-key-sientia-laborious-worker \ # kubectl create secret generic git-ssh-key-sientia-laborious-worker \
# --namespace sientia \ # --namespace sientia \