fix: use shared bound cron predicate

maintainer edit: make gateway execution, WebUI automation listing, and delete protection agree on the new bound cron shape. Legacy delivery payloads that carry sessionKey are excluded from the WebUI-bound automation surface.
This commit is contained in:
chengyongru
2026-06-11 23:09:21 +08:00
parent b4b6c04657
commit 3725b42e0e
5 changed files with 43 additions and 15 deletions
+2 -2
View File
@@ -184,16 +184,16 @@ async def test_session_automations_route_filters_by_webui_session(
name=name,
schedule=hourly,
message=message,
channel="websocket",
to=to,
session_key=f"websocket:{to}",
)
cron.add_job(
name="Legacy same target",
schedule=hourly,
message="Legacy job should not be treated as bound",
deliver=True,
channel="websocket",
to="abc",
session_key="websocket:abc",
)
cron.register_system_job(
CronJob(