Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. [2012-09-10 09:40:18,954: INFO/MainProcess] Celerybeat: Starting...
  2. [2012-09-10 09:40:19,001: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 2.0 seconds...
  3. [2012-09-10 09:40:22,004: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 4.0 seconds...
  4. [2012-09-10 09:40:32,012: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 6.0 seconds...
  5. [2012-09-10 09:40:53,030: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 8.0 seconds...
  6. [2012-09-10 09:41:29,052: ERROR/MainProcess] Celerybeat: Connection error: [Errno 111] Connection refused. Trying again in 10.0 seconds...
  7.  
  8. from celery.schedules import crontab
  9. import datetime
  10.  
  11. BROKER_URL = 'mongodb://localhost:27017/tasks'
  12. CELERY_RESULT_BACKEND = 'mongodb'
  13. CELERY_MONGODB_BACKEND_SETTINGS = {
  14. "host": "127.0.0.1",
  15. "port": 27017,
  16. "database": "celery",
  17. "taskmeta_collection": "celery_taskmeta",
  18. }
  19.  
  20. CELERYBEAT_SCHEDULE = {
  21. 'update-linked-calendars': {
  22. 'task': 'tasks.initiateUpdate',
  23. 'schedule': crontab(minute=0, hour='*/1')
  24. },
  25. }
  26.  
  27. CELERY_IMPORTS = ('tasks',)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement