mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
fix: set provider during campaign run (#69)
This commit is contained in:
parent
09897cb5d8
commit
8342cd1dda
2 changed files with 10 additions and 10 deletions
|
|
@ -365,16 +365,6 @@ async def _process_status_update(
|
|||
# Mark workflow run as completed
|
||||
await db_client.update_workflow_run(run_id=workflow_run_id, is_completed=True)
|
||||
|
||||
# Publish campaign event if applicable
|
||||
if workflow_run.campaign_id:
|
||||
publisher = await get_campaign_event_publisher()
|
||||
await publisher.publish_call_completed(
|
||||
campaign_id=workflow_run.campaign_id,
|
||||
workflow_run_id=workflow_run_id,
|
||||
queued_run_id=workflow_run.queued_run_id,
|
||||
call_duration=int(status.duration) if status.duration else 0,
|
||||
)
|
||||
|
||||
elif status.status in ["failed", "busy", "no-answer", "canceled"]:
|
||||
logger.warning(
|
||||
f"[run {workflow_run_id}] Call failed with status: {status.status}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue