-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (25 loc) · 836 Bytes
/
config.py
File metadata and controls
33 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
enable_utc = False
timezone = 'Asia/Kolkata'
broker_url = "amqp://admin:admin@localhost:5672//"
result_backend = "redis://:admin@localhost:6379/1"
#beat_scheduler = 'redbeat.RedBeatScheduler'
beat_scheduler = 'celery_pool_asyncio:PersistentScheduler'
beat_max_loop_interval = 5
redbeat_redis_url = "redis://:admin@localhost:6379/10"
redbeat_key_prefix = 'redbeat'
redbeat_schedule_key = redbeat_key_prefix + ':schedule'
redbeat_statics_key = redbeat_key_prefix + ':statics'
redbeat_lock_key = redbeat_key_prefix + ':lock'
redbeat_lock_timeout = beat_max_loop_interval * 300
beat_schedule = {
'add-every-10-seconds': {
'task': 'task.add_task',
'schedule': 2.0,
'args': (29,11)
},
'add-every-5-seconds': {
'task': 'task.test',
'schedule': 5.0,
'args': (16, 16)
},
}