Configuration checker
Taipy provides a checking mechanism to validate if your configuration is correct.
You can trigger the check by calling:
1 2 3 | |
The Config.check() method returns a collector of issues. Each issue corresponds to an inconsistency in
the configuration attached to an issue level (INFO, WARNING, ERROR). Config.check() raises an
exception if at least one issue collected has the ERROR level.
Info
The Config.check() is automatically called when the Orchestrator service is run.
Here is the list of the possible issues that the checker could return:
- A
WARNINGissue is created if therepository_typeproperty is populated in theCoreSectionwith an unsupported repository value. - An
ERRORissue is created if thestorage_typeand thescopeproperties of anyDataNodeConfigare not provided with a correct value. - Depending on the
storage_typevalue of aDataNodeConfig, anERRORissue is created if a specific required property is missing. - An
ERRORissue is created if one of theinputsandoutputsparameters of aTaskConfigdoes not correspond to aDataNodeConfigor a list ofDataNodeConfig. - A
WARNINGissue is created if aTaskConfighas no input and no output. - An
ERRORissue is created if anyDataNodeConfigof theinputsoroutputshas the same name as one of the attributes or properties of theTaskConfig. - An
ERRORissue is created if thefunctionparameter of aTaskConfigis not a callable function. - An
ERRORissue is created if one of the tasks provided in thesequencesparameters does not does not exist in the corresponding list of tasks intasksparameter of theScenarioConfig. - An
ERRORissue is created if aScenarioConfighas no task configuration defined. - An
ERRORissue is created if any item of aScenarioConfigtask list does not correspond to aTaskConfig. - A
ERRORissue is created if any additional data node of aScenarioConfigdoes not correspond to aDataNodeConfig. - An
ERRORissue is created if anyDataNodeConfigorTaskConfigor sequence of theScenarioConfighas the same name as one of the attributes or properties of theScenarioConfig. - An
ERRORissue is created if thefrequencyparameter of aScenarioConfighas an incorrectFrequencyvalue. - An
ERRORissue is created if the value ofcomparatorsproperty of aScenarioConfigis not a dictionary, with each key is a data node id and the value is a callable function. - An
ERRORissue is created if any data node, task, or sequence of aScenarioConfighas the same configuration id with another one in the sameScenarioConfig. - If the
JobConfighas been configured with multiple workers, anERRORissue is created if an "in_memory"DataNodeConfigis defined. - An
ERRORissue is created if themigration_functionparameter of aMigrationConfigis not a callable function. - An
ERRORissue is created if thetarget_versionparameter of aMigrationConfigis not a valid production version. - An
INFOissue is created if noMigrationConfigis defined to migrate entities from an old production version to the next. - An
ERRORissue is created if any additional property of any configuration has the same name as one of the attributes of the configuration class.