Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tasks received but not executing #3759
I have tasks that are received but will not execute. This the output of
I have tried adding
Steps to reproduce
Below are my settings and report.
I expect the jobs to be picked up and executed.
The tasks are received but nothing happens. My celery log file contains nothing except that the task was received.
Hey @anekix, here is the output when using loglevel=debug:
I've seen the same issue when using kombu master as of now.
The workaround seems to be using the "solo" pool (
referenced this issue
Jun 28, 2017
referenced this issue
Jan 31, 2018
Hi, I have the same problem. I'm using Python 3.6, Django 1.11.15, Celery 4.2 and Redis 4.0.2.
I detected that my periodic tasks are being properly sent by celerybeat but it seems the worker isn't running them. This is a simple test task which I configured to run every one minute. The task is loaded and gets send every one minute, but it never runs (because I don't see the HELLO! string on my output):
from celery.utils.log import get_task_logger from turnapp.celery import app logger = get_task_logger(__name__) @app.task def say_hello(): print("HELLO!") logger.info("HELLO!") return "HELLO!"
I get no error messages and everything seems to be working fine. Still I don't get the
These are my settings:
And my running commands are (using @blueyed workaround):
Am I missing something? Thanks in advance!
@vishnuku Still I get no result, but a different output:
You can see the current list of registered tasks in the celery.registry.TaskRegistry class. Could be that your celeryconfig (in the current directory) is not in PYTHONPATH so celery can't find it and falls back to defaults. Simply specify it explicitly when starting celery.
You can also set --loglevel=DEBUG and you should probably see the problem immediately.
@vishnuku You mean these?
I don't know why that KeyError popped up there, it didn't happen before your flags and it's not happening now (even running with your flags). But the tasks seem to be properly loaded and sent