This file is indexed.

/usr/share/pyshared/celery/concurrency/solo.py is in python-celery 2.4.6-1.

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
# -*- coding: utf-8 -*-
from __future__ import absolute_import

import os

from .base import BasePool, apply_target


class TaskPool(BasePool):
    """Solo task pool (blocking, inline)."""

    def on_start(self):
        self.pid = os.getpid()

    def on_apply(self, target, args, kwargs, callback=None,
            accept_callback=None, **_):
        return apply_target(target, args, kwargs,
                            callback, accept_callback, self.pid)

    def _get_info(self):
        return {"max-concurrency": 1,
                "processes": [self.pid],
                "max-tasks-per-child": None,
                "put-guarded-by-semaphore": True,
                "timeouts": ()}