Avaiga / taipy-core

A Python library to build powerful and customized data-driven back-end applications.
Apache License 2.0
38 stars 17 forks source link

BUG-ConfigurationUpdateBlocked should explain what it means and how to fix #588

Closed AlexandreSajus closed 1 year ago

AlexandreSajus commented 1 year ago

Description ConfigurationUpdateBlocked is an error that happens often and it should explain what it means and how to fix it

How to reproduce

  1. In notebooks: Loading a scenario and then reloading it results in ConfigurationUpdateBlocked. To fix it: restart the kernel

image

  1. In scripts: I'm not sure when it happens, it seems to be when modifying the config then re-running it but I haven't found a reproducible way. To fix it: delete .data

Runtime environment Please specify relevant indications.

trgiangdo commented 1 year ago

Hi @AlexandreSajus, the ConfigurationUpdateBlocked is because after running the Core service, any update to the configuration is blocked. This was stated in Core service doc, and maybe somewhere else too 😅

The simplest fix is to stop the Core service with core.stop(), then you can update the Configuration normally.

trgiangdo commented 1 year ago

However, I agree that there should be some explanation when ConfigurationUpdateBlocked happens.

Can you propose an error message that you and maybe other users would comfortable with?

AlexandreSajus commented 1 year ago

Hi! Yeah, sure, I'm thinking of something like: "ConfigurationUpdateBlocked: config service should be stopped by running core.stop() before modifying it. For more information, please refer to: https://docs.taipy.io/en/latest/manuals/running_services/#running-core."