StopIteration() after a few minutes of workers job

~20 minutes from the start of 4 workers with 4 processes per worker or 2 workers with 1 processes per worker I got 0 Active jobs in Celery Flower and StopIteration exception.

I’m using PyPy2 5.6 x64 on Debian 8. Part of my venv:

  • Apache docker container - Invalid command 'RewriteEngine'
  • mvc in container in an azure windows app service
  • How can I numactl membind a process inside Docker container?
  • Docker + nginx multi-domain configuration problems
  • Inconsistency in running docker-build on different environment
  • Docker container published via port forward can't connect to its own published port
    • amqp (1.4.9)
    • billiard (
    • celery (3.1.25)
    • greenlet (0.4.10)
    • kombu (3.0.37)

    How I run Celery workers:

    celery worker -A project_name.celeryconf -Q default -n default@%h -Ofair --autoscale=4,4 --maxtasksperchild=8

    Celery workers are working as a microservices. I am using Docker and Rancher for scaling workers. My machine has 10 nodes.

    The StopIteration() exception content:

    ERROR:kombu.async.hub:Error in timer: StopIteration() Traceback (most recent call last): File "/usr/local/site-packages/kombu/async/", line 140, in fire_timers entry() File "/usr/local/site-packages/kombu/async/", line 64, in _call_ return*self.args, **self.kwargs) File "/usr/local/site-packages/kombu/async/", line 132, in _reschedules return fun(*args, **kwargs) File "/usr/local/site-packages/billiard/", line 1308, in maintain_pool self._maintain_pool() File "/usr/local/site-packages/billiard/", line 1300, in _maintain_pool self._repopulate_pool(joined) File "/usr/local/site-packages/billiard/", line 1285, in _repopulate_pool self._create_worker_process(self._avail_index()) File "/usr/local/site-packages/celery/concurrency/", line 415, in _create_worker_process return super(AsynPool, self)._create_worker_process File "/usr/local/site-packages/billiard/", line 1102, in _create_worker_process inq, outq, synq = self.get_process_queues() File "/usr/local/site-packages/celery/concurrency/", line 997, in get_process_queues return next(q for q, owner in items(self._queues) StopIteration

    I don’t know what’s the matter.

  • Why am I getting ECONNREFUSED connecting to localhost MySQL from docker node app?
  • Docker + Django + MySQL - End of list of non-natively partitioned tables
  • docker Container command '/hello' not found or does not exist after switching hard drive
  • Docker connection refused when started with -ti bash
  • GitLab CI Docker CakePHP 2 testing doesn't work
  • /public/img/ folder not acceping new assets in Go-compiled web app
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.