修复 prefect定时问题
This commit is contained in:
+2
-8
@@ -16,10 +16,7 @@ deployments:
|
|||||||
- feishu
|
- feishu
|
||||||
- channel-inventory-sync
|
- channel-inventory-sync
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "15 9 * * *"
|
- cron: "15 9,19 * * *"
|
||||||
timezone: "Asia/Shanghai"
|
|
||||||
active: true
|
|
||||||
- cron: "15 19 * * *"
|
|
||||||
timezone: "Asia/Shanghai"
|
timezone: "Asia/Shanghai"
|
||||||
active: true
|
active: true
|
||||||
work_pool:
|
work_pool:
|
||||||
@@ -39,10 +36,7 @@ deployments:
|
|||||||
- feishu
|
- feishu
|
||||||
- batch-inventory-report
|
- batch-inventory-report
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "15 9 * * *"
|
- cron: "15 9,19 * * *"
|
||||||
timezone: "Asia/Shanghai"
|
|
||||||
active: true
|
|
||||||
- cron: "15 19 * * *"
|
|
||||||
timezone: "Asia/Shanghai"
|
timezone: "Asia/Shanghai"
|
||||||
active: true
|
active: true
|
||||||
work_pool:
|
work_pool:
|
||||||
|
|||||||
@@ -155,14 +155,14 @@ def main() -> None:
|
|||||||
if args.serve_channel_inventory_sync:
|
if args.serve_channel_inventory_sync:
|
||||||
inventory_channel_inventory_sync_flow.serve(
|
inventory_channel_inventory_sync_flow.serve(
|
||||||
name="channel-inventory-sync-0915-1915",
|
name="channel-inventory-sync-0915-1915",
|
||||||
cron=("15 9 * * *", "15 19 * * *"),
|
cron="15 9,19 * * *",
|
||||||
tags=["inventory", "feishu", "channel-inventory-sync"],
|
tags=["inventory", "feishu", "channel-inventory-sync"],
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
if args.serve_batch_inventory_report:
|
if args.serve_batch_inventory_report:
|
||||||
inventory_batch_inventory_report_flow.serve(
|
inventory_batch_inventory_report_flow.serve(
|
||||||
name="batch-inventory-report-0915-1915",
|
name="batch-inventory-report-0915-1915",
|
||||||
cron=("15 9 * * *", "15 19 * * *"),
|
cron="15 9,19 * * *",
|
||||||
parameters=flow_kwargs,
|
parameters=flow_kwargs,
|
||||||
tags=["inventory", "feishu", "batch-inventory-report"],
|
tags=["inventory", "feishu", "batch-inventory-report"],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user