fix(campaign): align adaptive handbook with shipped UI

This commit is contained in:
2026-07-21 19:15:52 +02:00
parent c05bb8e474
commit bfbb86564c
5 changed files with 145 additions and 62 deletions

View File

@@ -3264,10 +3264,11 @@ def send_campaign_now_endpoint(
):
_get_campaign_for_principal(session, campaign_id, principal, write=True)
_require_permission(principal, "campaigns:recipient:read")
"""Validate/build/queue and synchronously send a small campaign version.
"""Validate/build/queue and synchronously send every eligible job.
This endpoint is intentionally conservative and suitable for a first small
test campaign. Larger campaigns should use the queue/Celery flow.
No server-side job-count bound is currently enforced. Ordinary batches
must use the queue/Celery flow; this endpoint is for deliberately small
interactive runs.
"""
payload = payload or SendCampaignNowRequest()