removed subtask handler as need to do that differently

This commit is contained in:
Jun-te Kim 2026-03-31 10:38:46 +00:00
parent ecba926448
commit 0f9d031944

View file

@ -7,18 +7,15 @@
6) [TODO]The new sexy deal properties, move it over
"""
from backend.utils.subtasks import subtask_handler
from etl.hubspot.hubspotClient import HubspotClient
from etl.hubspot.hubspotDataTodB import HubspotDataToDb
from typing import Any
@subtask_handler()
# @subtask_handler() TODO: Do this without subtask_handler but task_handler() that creates task_id and subtask_id
def handler(body: dict[str, Any], context: Any, local: bool = False) -> None:
if local is True:
body = {
"task_id": "e31f2f21-175b-4a91-a3ec-a6baa325e917",
"sub_task_id": "8673913b-1a88-42d7-8578-0449123d94b0",
"hubspot_deal_id": "254427203793",
}