Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2012-09-10 09:40:18,954: INFO/MainProcess] Celerybeat: Starting...
- [2012-09-10 09:40:19,001: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 2.0 seconds...
- [2012-09-10 09:40:22,004: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 4.0 seconds...
- [2012-09-10 09:40:32,012: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 6.0 seconds...
- [2012-09-10 09:40:53,030: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 8.0 seconds...
- [2012-09-10 09:41:29,052: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 10.0 seconds...
- from celery.schedules import crontab
- import datetime
- BROKER_URL = 'mongodb://localhost:27017/tasks'
- CELERY_RESULT_BACKEND = 'mongodb'
- CELERY_MONGODB_BACKEND_SETTINGS = {
- "host": "127.0.0.1",
- "port": 27017,
- "database": "celery",
- "taskmeta_collection": "celery_taskmeta",
- }
- CELERYBEAT_SCHEDULE = {
- 'update-linked-calendars': {
- 'task': 'tasks.initiateUpdate',
- 'schedule': crontab(minute=0, hour='*/1')
- },
- }
- CELERY_IMPORTS = ('tasks',)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement