Skip to content

Commit

Permalink
Tunning celery settings to avoid reserved (as in stuck) tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 13, 2015
1 parent 9c10e12 commit 8bd122f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airflow/executors/celery_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@


class CeleryConfig(object):
BROKER_URL = conf.get('celery', 'BROKER_URL')
CELERY_RESULT_BACKEND = conf.get('celery', 'CELERY_RESULT_BACKEND')
CELERY_ACCEPT_CONTENT = ['json', 'pickle']
CELERYD_PREFETCH_MULTIPLIER = 1
CELERY_ACKS_LATE = True
BROKER_URL = conf.get('celery', 'BROKER_URL')
CELERY_RESULT_BACKEND = conf.get('celery', 'CELERY_RESULT_BACKEND')
CELERYD_CONCURRENCY = int(conf.get('celery', 'CELERYD_CONCURRENCY'))

app = Celery(
Expand Down

0 comments on commit 8bd122f

Please sign in to comment.