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:
1 parent
b4b6c04657
commit
3725b42e0e
5 files changed
+43
-15
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user