cube icon indicating copy to clipboard operation
cube copied to clipboard

Schema not updating in production mode

Open ka-weihe opened this issue 4 months ago • 3 comments

When adding a new cube to the schema directory, we have that Cube will automatically update the schema in development mode, but in production mode the new Cube is only picked up on restarts. Is this a bug or a feature?

ka-weihe avatar Mar 06 '24 14:03 ka-weihe

Yes, +1. Facing the same issue. We ran an instance with Dev mode, and another instance with non-development mode,. The Models created thru the UI (from the Dev Mode instance), is not getting listed with the API in the non-development mode, even though the same folders are mounted within the container (/cube/conf).

Any suggestion to refresh/reload automatically or via any API will greatly help us. Currently we are managing with restarting the non-development instance whenever a new model is created.

seatunneltrailuser avatar Mar 11 '24 16:03 seatunneltrailuser

Hi @ka-weihe @seatunneltrailuser 👋

Is this a bug or a feature?

This is definitely a feature or, better, intended behavior.

In production mode, Cube would not check if the data model files have been updated due to performance reasons. If you'd like to instruct Cube to reload data model files, please use repository_factory and schema_version.

igorlukanin avatar Mar 20 '24 15:03 igorlukanin

@ka-weihe @seatunneltrailuser Did my advice above help?

igorlukanin avatar May 14 '24 10:05 igorlukanin