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
WARNING
issue is created if therepository_type
property is populated in theCoreSection
with an unsupported repository value. - An
ERROR
issue is created if thestorage_type
and thescope
properties of anyDataNodeConfig
are not provided with a correct value. - Depending on the
storage_type
value of aDataNodeConfig
, anERROR
issue is created if a specific required property is missing. - An
ERROR
issue is created if one of theinputs
andoutputs
parameters of aTaskConfig
does not correspond to aDataNodeConfig
or a list ofDataNodeConfig
. - A
WARNING
issue is created if aTaskConfig
has no input and no output. - An
ERROR
issue is created if anyDataNodeConfig
of theinputs
oroutputs
has the same name as one of the attributes or properties of theTaskConfig
. - An
ERROR
issue is created if thefunction
parameter of aTaskConfig
is not a callable function. - An
ERROR
issue is created if one of the tasks provided in thesequences
parameters does not does not exist in the corresponding list of tasks intasks
parameter of theScenarioConfig
. - An
ERROR
issue is created if aScenarioConfig
has no task configuration defined. - An
ERROR
issue is created if any item of aScenarioConfig
task list does not correspond to aTaskConfig
. - A
ERROR
issue is created if any additional data node of aScenarioConfig
does not correspond to aDataNodeConfig
. - An
ERROR
issue is created if anyDataNodeConfig
orTaskConfig
or sequence of theScenarioConfig
has the same name as one of the attributes or properties of theScenarioConfig
. - An
ERROR
issue is created if thefrequency
parameter of aScenarioConfig
has an incorrectFrequency
value. - An
ERROR
issue is created if the value ofcomparators
property of aScenarioConfig
is not a dictionary, with each key is a data node id and the value is a callable function. - An
ERROR
issue is created if any data node, task, or sequence of aScenarioConfig
has the same configuration id with another one in the sameScenarioConfig
. - If the
JobConfig
has been configured with multiple workers, anERROR
issue is created if an "in_memory"DataNodeConfig
is defined. - An
ERROR
issue is created if themigration_function
parameter of aMigrationConfig
is not a callable function. - An
ERROR
issue is created if thetarget_version
parameter of aMigrationConfig
is not a valid production version. - An
INFO
issue is created if noMigrationConfig
is defined to migrate entities from an old production version to the next. - An
ERROR
issue is created if any additional property of any configuration has the same name as one of the attributes of the configuration class.