mistral/mistral/services
Renat Akhmerov ac41f94d11 Add an ability to disable workflow text validation
* 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
2019-09-27 04:33:04 +00:00
..
__init__.py Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
action_execution_checker.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
action_execution_reporter.py A mechanism to close stuck running action executions 2018-06-12 14:15:15 +00:00
action_manager.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
actions.py Rename package 'workbook' to 'lang' 2017-03-06 15:41:37 +07:00
expiration_policy.py Modify log infomation to achieve the same format 2017-11-20 09:04:54 +00:00
legacy_scheduler.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
periodic.py Make cron-triggers not play catchup 2018-06-14 09:49:24 +01:00
security.py [Triggers] Fix running openstack actions via triggers 2017-08-09 11:49:09 +03:00
triggers.py [Event-engine] Allow event_engine to work in HA 2018-10-17 16:30:17 +00:00
workbooks.py Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
workflows.py Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00