constants.py 1.1 KB

12345678910111213141516171819202122232425262728
  1. # Env var set by job manager to pass runtime env and metadata to subprocess
  2. RAY_JOB_CONFIG_JSON_ENV_VAR = "RAY_JOB_CONFIG_JSON_ENV_VAR"
  3. # The plugin config which should be loaded when ray cluster starts.
  4. # It is a json formatted config,
  5. # e.g. [{"class": "xxx.xxx.xxx_plugin", "priority": 10}].
  6. RAY_RUNTIME_ENV_PLUGINS_ENV_VAR = "RAY_RUNTIME_ENV_PLUGINS"
  7. # The field name of plugin class in the plugin config.
  8. RAY_RUNTIME_ENV_CLASS_FIELD_NAME = "class"
  9. # The field name of priority in the plugin config.
  10. RAY_RUNTIME_ENV_PRIORITY_FIELD_NAME = "priority"
  11. # The default priority of runtime env plugin.
  12. RAY_RUNTIME_ENV_PLUGIN_DEFAULT_PRIORITY = 10
  13. # The minimum priority of runtime env plugin.
  14. RAY_RUNTIME_ENV_PLUGIN_MIN_PRIORITY = 0
  15. # The maximum priority of runtime env plugin.
  16. RAY_RUNTIME_ENV_PLUGIN_MAX_PRIORITY = 100
  17. # The schema files or directories of plugins which should be loaded in workers.
  18. RAY_RUNTIME_ENV_PLUGIN_SCHEMAS_ENV_VAR = "RAY_RUNTIME_ENV_PLUGIN_SCHEMAS"
  19. # The file suffix of runtime env plugin schemas.
  20. RAY_RUNTIME_ENV_PLUGIN_SCHEMA_SUFFIX = ".json"