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

@@ -544,10 +544,11 @@ def send_campaign_now(
use_rate_limit: bool = True,
enqueue_imap_task: bool = False,
) -> SendCampaignNowResult:
"""Queue and send a small campaign synchronously.
"""Queue and send all eligible jobs for one campaign synchronously.
This is intended for WebUI test/small-campaign flows. Large campaigns can
still use queue_campaign_jobs with Celery workers.
The service currently has no server-side job-count bound. Callers must use
the worker queue for ordinary batches and reserve this path for deliberately
small interactive runs.
"""
campaign = _get_campaign_for_tenant(session, campaign_id=campaign_id, tenant_id=tenant_id)