调整 格式+推送时间
This commit is contained in:
@@ -132,7 +132,7 @@ def inventory_batch_inventory_report_flow(
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(description="Prefect 调度:每天 09:15 执行渠道库存统计和批次库存统计写飞书。")
|
||||
parser = argparse.ArgumentParser(description="Prefect 调度:每天 09:15 和 19:15 执行渠道库存统计和批次库存统计写飞书。")
|
||||
parser.add_argument("--serve-channel-inventory-sync", action="store_true", help="启动渠道库存统计 flow 的本地 serve 调度")
|
||||
parser.add_argument("--serve-batch-inventory-report", action="store_true", help="启动批次库存统计 flow 的本地 serve 调度")
|
||||
parser.add_argument("--run-channel-inventory-sync", action="store_true", help="立即执行一次渠道库存统计 flow")
|
||||
@@ -154,15 +154,15 @@ def main() -> None:
|
||||
}
|
||||
if args.serve_channel_inventory_sync:
|
||||
inventory_channel_inventory_sync_flow.serve(
|
||||
name="channel-inventory-sync-0915",
|
||||
cron="15 9 * * *",
|
||||
name="channel-inventory-sync-0915-1915",
|
||||
cron=("15 9 * * *", "15 19 * * *"),
|
||||
tags=["inventory", "feishu", "channel-inventory-sync"],
|
||||
)
|
||||
return
|
||||
if args.serve_batch_inventory_report:
|
||||
inventory_batch_inventory_report_flow.serve(
|
||||
name="batch-inventory-repor-0915",
|
||||
cron="15 9 * * *",
|
||||
name="batch-inventory-report-0915-1915",
|
||||
cron=("15 9 * * *", "15 19 * * *"),
|
||||
parameters=flow_kwargs,
|
||||
tags=["inventory", "feishu", "batch-inventory-report"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user