forked from OCA/oca-github-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcron.py
More file actions
23 lines (20 loc) · 712 Bytes
/
cron.py
File metadata and controls
23 lines (20 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) ACSONE SA/NV 2018
# Distributed under the MIT License (http://opensource.org/licenses/MIT).
from celery.schedules import crontab
from .queue import app
app.conf.beat_schedule = {
"heartbeat": {
"task": "oca_github_bot.tasks.heartbeat.heartbeat",
"schedule": crontab(minute="*/15"),
},
"main_branch_bot_all_repos": {
"task": "oca_github_bot.tasks.main_branch_bot.main_branch_bot_all_repos",
"args": ("OCA",),
"schedule": crontab(hour="2", minute="30"),
},
"tag_ready_to_merge": {
"task": "oca_github_bot.tasks.tag_ready_to_merge.tag_ready_to_merge",
"args": ("OCA",),
"schedule": crontab(minute="0"),
},
}