Config 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.
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
. - A
WARNING
issue is created if aTaskConfig
has no input and no output. - 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. - A
WARNING
issue is created if aScenarioConfig
has no additional data node configuration defined. - 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. - 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.