<#7646 Support notification rules on the PAUSED ph...
# flyte-github
a
#7646 Support notification rules on the PAUSED phase with a dedicated template Pull request opened by SVilgelm Adds support for notification rules on
ACTION_PHASE_PAUSED
(a condition action awaiting a signal — human-in-the-loop gate), with a dedicated template data shape: •
InlineRule.on_phases
now permits
ACTION_PHASE_PAUSED
(buf.validate allowlist). • New
EVENT_TYPE_ACTION_PAUSED
event type and `ActionPausedNotificationTemplateData`: PAUSED rules compile their delivery template against it instead of
RunCompletedNotificationTemplateData
. It carries: •
action
— the
ActionIdentifier
of the paused condition, •
prompt
/
description
— the condition's content, •
prompt_type
— how to render the prompt (`TEXT`/`MARKDOWN`, as a trimmed enum-name string; the
flyteidl2.workflow
enum cannot be imported into the notification package without an import cycle through
flyteidl2/task/run.proto
). • A CEL rule (
paused_rule_exclusive
) enforces that a rule subscribing to PAUSED subscribes to PAUSED only — one rule, one template data shape. Generated files were produced with the CI image (
make buf
);
check-generate
is green. Consumed by unionai/cloud: the actions service publishes paused-condition notifications (including the condition spec) to the run-notifications stream (unionai/cloud#16949), and the notification gate compiles PAUSED templates against the new data shape. flyteorg/flyte