# from utils.DolphinschedulerHelper import DolphinschedulerHelper
from post_to_dolphin import DolphinschedulerHelper

process_df_name = '内部asin-评分评论数计算'
# DolphinschedulerHelper.start_process_instance(
DolphinschedulerHelper.start_process_instance_common(
            project_name="big_data_selection",
            process_df_name=process_df_name,
            startParams={
                "site_name": 'us',
                "date_type": 'day',
                "date_info": '2026-03-01'
            },
            warning_Type="ALL"
        )


# import img2pdf
# from pathlib import Path
#
# imgs = ["1.jpg", "2.png", "3.jpg"]  # 顺序就是 PDF 页顺序
# with open("out.pdf", "wb") as f:
#     f.write(img2pdf.convert([str(Path(p)) for p in imgs]))