A deal crossing into abandonment builds an abandon_job message 🟩

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-07 15:54:24 +00:00
parent aaa8c9763f
commit 0d69d628e8

View file

@ -210,6 +210,10 @@ class HubspotDealDiffer:
new_deal=new_deal, new_project=new_project, old_deal=old_deal
):
flows.append("sync_tenant_data")
if HubspotDealDiffer.check_for_abri_deal_abandonment(
new_deal=new_deal, new_project=new_project, old_deal=old_deal
):
flows.append("abandon_job")
if not flows:
return None
@ -227,6 +231,9 @@ class HubspotDealDiffer:
else None
),
"confirmed_survey_time": new_deal.get("confirmed_survey_time"),
# Carried for the abandon flow's reason-mapping seam; harmless to
# the other flows, which ignore it.
"outcome": new_deal.get("outcome"),
}
@staticmethod