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:
@@ -141,10 +141,15 @@ async def main():
|
||||
metrics_controller=metrics_controller,
|
||||
)
|
||||
|
||||
if runtime == 'legacy':
|
||||
to_install_runtime = 'single'
|
||||
else:
|
||||
to_install_runtime = runtime
|
||||
|
||||
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:
|
||||
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)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user