فهرست منبع

Tests passing

Ask Solem 13 سال پیش
والد
کامیت
86d0ebc2e4
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 1
      celery/concurrency/solo.py
  2. 0 1
      celery/tests/test_concurrency/test_concurrency_solo.py

+ 1 - 1
celery/concurrency/solo.py

@@ -15,7 +15,7 @@ class TaskPool(BasePool):
 
     def _get_info(self):
         return {"max-concurrency": 1,
-                "processes": [self.pid],
+                "processes": [os.getpid()],
                 "max-tasks-per-child": None,
                 "put-guarded-by-semaphore": True,
                 "timeouts": ()}

+ 0 - 1
celery/tests/test_concurrency/test_concurrency_solo.py

@@ -12,7 +12,6 @@ class test_solo_TaskPool(unittest.TestCase):
     def test_on_start(self):
         x = solo.TaskPool()
         x.on_start()
-        self.assertTrue(x.pid)
 
     def test_on_apply(self):
         x = solo.TaskPool()