This file is indexed.

/usr/share/pyshared/djcelery/management/commands/celeryd.py is in python-django-celery 2.5.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""

Start the celery daemon from the Django management command.

"""
from __future__ import absolute_import

from celery.bin import celeryd

from djcelery.app import app
from djcelery.management.base import CeleryCommand

worker = celeryd.WorkerCommand(app=app)


class Command(CeleryCommand):
    """Run the celery daemon."""
    help = 'Runs a Celery worker node.'
    requires_model_validation = True
    options = (CeleryCommand.options
             + worker.get_options()
             + worker.preload_options)

    def handle(self, *args, **options):
        worker.run(*args, **options)