Config checker

Taipy provides a checking mechanism to validate if your configuration is correct.

You can trigger the check by calling:

1
2
3
from taipy import Config

Config.check()

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 the repository_type property is populated in the CoreSection with an unsupported repository value.
  • An ERROR issue is created if the storage_type and the scope properties of any DataNodeConfig are not provided with a correct value.
  • Depending on the storage_type value of a DataNodeConfig, an ERROR issue is created if a specific required property is missing.
  • An ERROR issue is created if one of the inputs and outputs parameters of a TaskConfig does not correspond to a DataNodeConfig.
  • A WARNING issue is created if a TaskConfig has no input and no output.
  • An ERROR issue is created if the function parameter of a TaskConfig is not a callable function.
  • An ERROR issue is created if one of the tasks provided in the sequences parameters does not does not exist in the corresponding list of tasks in tasks parameter of the ScenarioConfig.
  • An ERROR issue is created if a ScenarioConfig has no task configuration defined.
  • A WARNING issue is created if a ScenarioConfig has no additional data node configuration defined.
  • An ERROR issue is created if the frequency parameter of a ScenarioConfig has an incorrect Frequency value.
  • An ERROR issue is created if the value of comparators property of a ScenarioConfig 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, an ERROR issue is created if an "in_memory" DataNodeConfig is defined.
  • An ERROR issue is created if the migration_function parameter of a MigrationConfig is not a callable function.
  • An ERROR issue is created if the target_version parameter of a MigrationConfig is not a valid production version.
  • An INFO issue is created if no MigrationConfig is defined to migrate entities from an old production version to the next.

The next section presents advanced configuration.