Skip to content

Commit

Permalink
Refine COE schedules tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Jul 30, 2024
1 parent 40a1470 commit ee009b8
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions osuchan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,44 +220,64 @@ class EnvSettings(BaseSettings):
"task": "profiles.tasks.update_loved_beatmaps",
"schedule": crontab(minute="0", hour="0", day_of_month="1"),
},
"update-coe-top-members-osu-every-10-minutes": {
"update-coe-top-10-members-osu-every-10-minutes": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 10,
"args": (804, 50),
},
"update-coe-top-members-taiko-every-10-minutes": {
"update-coe-top-10-members-taiko-every-10-minutes": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 10,
"args": (805, 50),
},
"update-coe-top-members-catch-every-10-minutes": {
"update-coe-top-10-members-catch-every-10-minutes": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 10,
"args": (806, 50),
},
"update-coe-top-members-mania-every-10-minutes": {
"update-coe-top-10-members-mania-every-10-minutes": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 10,
"args": (807, 50),
},
"update-coe-all-members-osu-every-hour": {
"update-coe-top-100-members-osu-every-hour": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 60,
"args": (804, 1000),
"args": (804, 50),
},
"update-coe-all-members-taiko-every-hour": {
"update-coe-top-100-members-taiko-every-hour": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 60,
"args": (805, 1000),
"args": (805, 50),
},
"update-coe-all-members-catch-every-hour": {
"update-coe-top-100-members-catch-every-hour": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 60,
"args": (806, 1000),
"args": (806, 50),
},
"update-coe-all-members-mania-every-hour": {
"update-coe-top-100-members-mania-every-hour": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": 60 * 60,
"args": (807, 50),
},
"update-coe-all-members-osu-every-day": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": crontab(minute="0", hour="19"), # 21:00 netherlands time
"args": (804, 1000),
},
"update-coe-all-members-taiko-every-day": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": crontab(minute="0", hour="19"), # 21:00 netherlands time
"args": (805, 1000),
},
"update-coe-all-members-catch-every-day": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": crontab(minute="0", hour="19"), # 21:00 netherlands time
"args": (806, 1000),
},
"update-coe-all-members-mania-every-day": {
"task": "profiles.tasks.dispatch_update_community_leaderboard_members",
"schedule": crontab(minute="0", hour="19"), # 21:00 netherlands time
"args": (807, 1000),
},
"send-coe-podium-osu-every-day": {
Expand Down

0 comments on commit ee009b8

Please sign in to comment.