ac41f94d11
* For the sake of the service performance, it may make sense to disable validation of the workflow language syntax if it is affordable for a particular use case. For example, if all workflows are auto-generated by a 3rd party system and tested thoroughly (either by running them with Mistral or at least validating them via the special Mistral endpoint) then we can safely disable validation of the language syntax when uploading workflow definitions. For production systems it makes a big difference if workflow texts are large (thousands of tasks). This patch adds the boolean parameter "skip_validation" for API requests like "POST /v2/workflows" to disable validation, if needed, and the new configuration property "validation_mode" to set a desired validation mode. The option is an enumeration and has the following valid values: 1) "enabled" - enabled for all API requests unless it's explicitly disabled in the request itself 2) "mandatory" - enabled for all API requests regardless of the flag in the request 3) "disabled" - disabled for all API requrests regardless of the flag in the request "mandatory" is choosen as the default value for this new property to keep compatibility with the previous versions. * Minor style changes. Closes-Bug: #1844242 Change-Id: Ib509653d38254954f8449be3031457e5f636ccf2 |
||
---|---|---|
.. | ||
v2 | ||
__init__.py | ||
base.py | ||
parser.py | ||
types.py |