Skip to content

Commit b22b55a

Browse files
committed
update to schedules
1 parent dc2f0e0 commit b22b55a

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

flow_deployments/broadcasts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
deployment_broadcast_1w_ago = Deployment.build_from_flow(
3434
flow=broadcast_next_meme_to_active_1w_ago,
3535
name="broadcast_next_meme_to_active_1w_ago",
36-
schedule=(CronSchedule(cron="7 * * * *", timezone="Europe/London")),
36+
schedules=[CronSchedule(cron="7 * * * *", timezone="Europe/London")],
3737
work_pool_name=settings.ENVIRONMENT,
3838
)
3939

@@ -43,7 +43,7 @@
4343
deployment_broadcast_4w_ago = Deployment.build_from_flow(
4444
flow=broadcast_next_meme_to_active_4w_ago,
4545
name="broadcast_next_meme_to_active_4w_ago",
46-
schedule=(CronSchedule(cron="9 * * * *", timezone="Europe/London")),
46+
schedules=[CronSchedule(cron="9 * * * *", timezone="Europe/London")],
4747
work_pool_name=settings.ENVIRONMENT,
4848
)
4949

flow_deployments/crossposting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
deployment_crossposting_tgchannelen = Deployment.build_from_flow(
1111
flow=post_meme_to_tgchannelen,
1212
name="post_meme_to_tgchannelen",
13-
schedule=(CronSchedule(cron="3 */5 * * *", timezone="Europe/London")),
13+
schedules=[CronSchedule(cron="3 */5 * * *", timezone="Europe/London")],
1414
work_pool_name=settings.ENVIRONMENT,
1515
)
1616

@@ -20,7 +20,7 @@
2020
deployment_crossposting_tgchannelru = Deployment.build_from_flow(
2121
flow=post_meme_to_tgchannelru,
2222
name="post_meme_to_tgchannelru",
23-
schedule=(CronSchedule(cron="33 */5 * * *", timezone="Europe/London")),
23+
schedules=[CronSchedule(cron="33 */5 * * *", timezone="Europe/London")],
2424
work_pool_name=settings.ENVIRONMENT,
2525
)
2626

flow_deployments/parsers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
deployment_tg = Deployment.build_from_flow(
1010
flow=parse_telegram_sources,
1111
name="Parse Telegram Sources",
12-
schedule=(CronSchedule(cron="0 * * * *", timezone="Europe/London")),
12+
schedules=[CronSchedule(cron="0 * * * *", timezone="Europe/London")],
1313
work_pool_name=settings.ENVIRONMENT,
1414
)
1515

@@ -20,7 +20,7 @@
2020
flow=parse_vk_sources,
2121
name="Parse VK Sources",
2222
work_pool_name=settings.ENVIRONMENT,
23-
schedule=(CronSchedule(cron="20 * * * *", timezone="Europe/London")),
23+
schedules=[CronSchedule(cron="20 * * * *", timezone="Europe/London")],
2424
)
2525

2626
deployment_vk.apply()
@@ -30,7 +30,7 @@
3030
flow=parse_ig_sources,
3131
name="Parse Instgram Sources",
3232
work_pool_name=settings.ENVIRONMENT,
33-
schedule=(CronSchedule(cron="30 */5 * * *", timezone="Europe/London")),
33+
schedules=[CronSchedule(cron="30 */5 * * *", timezone="Europe/London")],
3434
)
3535

3636
deployment_ig.apply()

flow_deployments/stats.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
flow=calculate_user_stats,
1212
name="Calculate user_stats",
1313
work_pool_name=settings.ENVIRONMENT,
14-
schedule=(CronSchedule(cron="0,15,30,45 * * * *", timezone="Europe/London")),
14+
schedules=[CronSchedule(cron="0,2,15,30,45 * * * *", timezone="Europe/London")],
1515
)
1616

1717
deployment_user_stats.apply()
@@ -21,7 +21,11 @@
2121
flow=calculate_user_meme_source_stats,
2222
name="Calculate user_meme_source_stats",
2323
work_pool_name=settings.ENVIRONMENT,
24-
schedule=(CronSchedule(cron="13,28,43,58 * * * *", timezone="Europe/London")),
24+
schedules=[
25+
CronSchedule(
26+
cron="3,8,13,18,23,28,33,38,43,48,53,58 * * * *", timezone="Europe/London"
27+
)
28+
],
2529
)
2630

2731
deployment_user_meme_source_stats.apply()
@@ -31,7 +35,7 @@
3135
flow=calculate_meme_stats,
3236
name="Calculate meme_stats",
3337
work_pool_name=settings.ENVIRONMENT,
34-
schedule=(CronSchedule(cron="3,18,33,48 * * * *", timezone="Europe/London")),
38+
schedules=[CronSchedule(cron="3,18,33,48 * * * *", timezone="Europe/London")],
3539
)
3640

3741
deployment_user_stats.apply()
@@ -41,7 +45,7 @@
4145
flow=calculate_meme_source_stats,
4246
name="Calculate meme_source_stats",
4347
work_pool_name=settings.ENVIRONMENT,
44-
schedule=(CronSchedule(cron="5,20,35,50 * * * *", timezone="Europe/London")),
48+
schedules=[CronSchedule(cron="5,20,35,50 * * * *", timezone="Europe/London")],
4549
)
4650

4751
deployment_meme_source_stats.apply()

flow_deployments/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
deployment_ocr_uploaded_memes = Deployment.build_from_flow(
88
flow=ocr_uploaded_memes,
99
name="OCR Uploaded Memes",
10-
schedule=(CronSchedule(cron="*/5 * * * *", timezone="Europe/London")),
10+
schedules=[CronSchedule(cron="*/5 * * * *", timezone="Europe/London")],
1111
work_pool_name=settings.ENVIRONMENT,
1212
)
1313

0 commit comments

Comments
 (0)