MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / is_workflows_enabled

Function is_workflows_enabled

src/workflow/gating.py:26–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def is_workflows_enabled() -> bool:
27 if _env_truthy(_DISABLE_ENV):
28 return False
29 try:
30 from src.settings.settings import get_settings
31
32 settings = get_settings()
33 except Exception:
34 # Pre-startup / no settings available: default to enabled (the env
35 # kill-switch above still applies).
36 return True
37 if getattr(settings, "disable_workflows", False):
38 return False
39 extra = getattr(settings, "extra", None)
40 if isinstance(extra, dict) and extra.get("disableWorkflows"):
41 return False
42 return True

Callers 9

_callFunction · 0.90
get_builtin_commandsFunction · 0.90
_valid_options_strFunction · 0.90
_effort_optionsFunction · 0.90
runMethod · 0.90
is_ultracode_sessionFunction · 0.90
ultracode_reminder_forFunction · 0.90

Calls 3

get_settingsFunction · 0.90
_env_truthyFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected