Pārlūkot izejas kodu

Removes CELERYD_BOOTSTEPS and CELERYD_CONSUMER_BOOTSTEPS settings (use app.steps). Closes #1168

Ask Solem 12 gadi atpakaļ
vecāks
revīzija
16a161a678
3 mainītis faili ar 1 papildinājumiem un 29 dzēšanām
  1. 0 2
      celery/app/defaults.py
  2. 1 7
      celery/worker/__init__.py
  3. 0 20
      docs/configuration.rst

+ 0 - 2
celery/app/defaults.py

@@ -157,8 +157,6 @@ NAMESPACES = {
         'AGENT': Option(None, type='string'),
         'AUTOSCALER': Option('celery.worker.autoscale:Autoscaler'),
         'AUTORELOADER': Option('celery.worker.autoreload:Autoreloader'),
-        'BOOTSTEPS': Option((), type='tuple'),
-        'CONSUMER_BOOTSTEPS': Option((), type='tuple'),
         'CONCURRENCY': Option(0, type='int'),
         'TIMER': Option(type='string'),
         'TIMER_PRECISION': Option(1.0, type='float'),

+ 1 - 7
celery/worker/__init__.py

@@ -80,13 +80,7 @@ class WorkController(configurated):
     pidlock = None
 
     class Namespace(bootsteps.Namespace):
-        """This is the bootstep namespace for the
-        :class:`WorkController` class.
-
-        It loads modules from :setting:`CELERYD_BOOTSTEPS`, and its
-        own set of built-in bootsteps.
-
-        """
+        """Worker bootstep namespace."""
         name = 'Worker'
         default_steps = set([
             'celery.worker.components:Hub',

+ 0 - 20
docs/configuration.rst

@@ -1521,26 +1521,6 @@ The directory containing X.509 certificates used for
 Custom Component Classes (advanced)
 -----------------------------------
 
-.. setting:: CELERYD_BOOTSTEPS
-
-CELERYD_BOOTSTEPS
-~~~~~~~~~~~~~~~~~
-
-This setting enables you to add additional components to the worker process.
-It should be a list of module names with
-:class:`celery.bootsteps.Step`
-classes, that augments functionality in the worker.
-
-.. setting:: CELERYD_CONSUMER_BOOTSTEPS
-
-CELERYD_CONSUMER_BOOTSTEPS
-~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-This setting enables you to add additional components to the workers consumer.
-It should be a list of module names with
-:class:`celery.bootsteps.Step`` classes, that augments
-functionality in the consumer.
-
 .. setting:: CELERYD_POOL
 
 CELERYD_POOL