Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. from pipeline import tasks
  2. ##Broker settings
  3. BROKER_HOST = "localhost"
  4. BROKER_PORT = 5672
  5. BROKER_USER = "ltu"
  6. BROKER_PASSWORD = "ltu"
  7. BROKER_VHOST = "/"
  8. #CELERY_RESULT_BACKEND = "amqp"
  9. CELERY_IMPORTS = tuple(["pipeline.core.framework.delay_tasks"] +
  10. ["pipeline.tasks.%s" % lsModule for lsModule in tasks.__all__])
  11.  
  12. # configure backend to postgresql
  13. CELERY_RESULT_BACKEND = "database"
  14. CELERY_RESULT_DBURI = "postgresql://postgres:postgres@localhost/pipelinedemos"
  15.  
  16. ## Worker settings
  17.  
  18. #Concurency: we only use one thread in order to have a correct evaluation
  19. CELERYD_CONCURRENCY = 4
  20.  
  21. CELERYD_LOG_LEVEL = "INFO"
  22. CELERY_ACKS_LATE = True
  23.  
  24. #no rate limit
  25. CELERY_DISABLE_RATE_LIMITS = True
  26. CELERY_AMQP_TASK_RESULT_EXPIRES = 18000 # 5 hours.
  27. CELERY_ALWAYS_EAGER = False
  28.  
  29. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement