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