File tree Expand file tree Collapse file tree 8 files changed +34
-20
lines changed
djcelery/management/commands Expand file tree Collapse file tree 8 files changed +34
-20
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Looking for sponsor for working on django 1.11 to 2.2 support https://github.com
6
6
7
7
.. image :: https://user-images.githubusercontent.com/26336/59113881-917c5180-890b-11e9-9863-f5a98d0e235e.png
8
8
9
- :Version: 3.3.0
9
+ :Version: 3.3.1
10
10
:Web: http://celeryproject.org/
11
11
:Download: http://pypi.python.org/pypi/django-celery/
12
12
:Source: http://github.com/celery/django-celery/
Original file line number Diff line number Diff line change 11
11
class Command (CeleryCommand ):
12
12
"""The celery command."""
13
13
help = 'celery commands, see celery help'
14
- cc_options = CeleryCommand .options if CeleryCommand .options else []
15
- base_options = base .get_options () if base .get_options () else []
16
- preload_options = getattr (base , 'preload_options' , []) or []
17
- options = cc_options + base_options + preload_options
14
+ options = (
15
+ tuple (CeleryCommand .options ) +
16
+ tuple (base .get_options ()) +
17
+ tuple (getattr (base , 'preload_options' , ()))
18
+ )
18
19
19
20
def run_from_argv (self , argv ):
20
21
argv = self .handle_default_options (argv )
Original file line number Diff line number Diff line change 16
16
class Command (CeleryCommand ):
17
17
"""Run the celery periodic task scheduler."""
18
18
help = 'Old alias to the "celery beat" command.'
19
- options = CeleryCommand .options
20
- options += beat .get_options ()
21
- options += beat .preload_options
19
+ options = (
20
+ tuple (CeleryCommand .options ) +
21
+ tuple (beat .get_options ()) +
22
+ tuple (getattr (beat , 'preload_options' , ()))
23
+ )
22
24
23
25
def handle (self , * args , ** options ):
24
26
beat .run (* args , ** options )
Original file line number Diff line number Diff line change 16
16
class Command (CeleryCommand ):
17
17
"""Run the celery curses event viewer."""
18
18
help = 'Takes snapshots of the clusters state to the database.'
19
- options = CeleryCommand .options
20
- options += ev .get_options ()
21
- options += ev .preload_options
19
+ options = (
20
+ tuple (CeleryCommand .options ) +
21
+ tuple (ev .get_options ()) +
22
+ tuple (getattr (ev , 'preload_options' , ()))
23
+ )
22
24
23
25
def handle (self , * args , ** options ):
24
26
"""Handle the management command."""
Original file line number Diff line number Diff line change 16
16
class Command (CeleryCommand ):
17
17
"""Run the celery daemon."""
18
18
help = 'Old alias to the "celery worker" command.'
19
- options = CeleryCommand .options
20
- options += worker .get_options ()
21
- options += worker .preload_options
19
+ options = (
20
+ tuple (CeleryCommand .options ) +
21
+ tuple (worker .get_options ()) +
22
+ tuple (getattr (worker , 'preload_options' , ()))
23
+ )
22
24
23
25
def handle (self , * args , ** options ):
24
26
worker .check_args (args )
Original file line number Diff line number Diff line change 31
31
class Command (CeleryCommand ):
32
32
"""Run the celery monitor."""
33
33
help = 'Run the celery monitor'
34
- options = CeleryCommand .options
35
- options += (mon and mon .get_options () + mon .preload_options or ())
34
+ options = (
35
+ tuple (CeleryCommand .options ) +
36
+ (
37
+ tuple (mon .get_options ()) +
38
+ tuple (getattr (mon , 'preload_options' , ()))
39
+ ) if mon else ()
40
+ )
36
41
37
42
def handle (self , * args , ** options ):
38
43
"""Handle the management command."""
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ def run(self):
32
32
class Command (CeleryCommand ):
33
33
"""Run the celery curses event viewer."""
34
34
args = '[optional port number, or ipaddr:port]'
35
- options = runserver .Command .option_list
36
- options += ev .get_options ()
37
- options += ev .preload_options
35
+ options = (
36
+ tuple (runserver .Command .option_list ) +
37
+ tuple (ev .get_options ()) +
38
+ tuple (getattr (ev , 'preload_options' , ()))
39
+ )
38
40
39
41
help = 'Starts Django Admin instance and celerycam in the same process.'
40
42
# see http://code.djangoproject.com/changeset/13319.
Original file line number Diff line number Diff line change 4
4
5
5
.. image :: http://cloud.github.com/downloads/celery/celery/celery_128.png
6
6
7
- :Version: 3.3.0
7
+ :Version: 3.3.1
8
8
:Web: http://celeryproject.org/
9
9
:Download: http://pypi.python.org/pypi/django-celery/
10
10
:Source: http://github.com/celery/django-celery/
You can’t perform that action at this time.
0 commit comments