Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging celery task #6

Open
andyneff opened this issue Sep 16, 2020 · 0 comments
Open

Debugging celery task #6

andyneff opened this issue Sep 16, 2020 · 0 comments

Comments

@andyneff
Copy link

I am trying to debug a celery task (specifically the __call__ that calls a celery task), and when I add

import ripdb
ripdb.set_trace()

And I get the normal:

pdb is running on 127.0.0.1:4444

However, as soon as I connect with telnet I get an error:

Warning: Input is not a terminal (fd=16)

Which comes from

./prompt_toolkit/input/vt100.py:            msg = "Warning: Input is not a terminal (fd=%r).\n"

as far as I can tell.

Any idea what is going on here? Celery is a difficult case (but exactly why I use rpdb, and trying out ripdb) because it's a piece of code being executed on a worker somewhere. I can't repeat the bug outside of celery, by redirecting stdin/out/err, so I'm not sure what is special about celery, or how to work around it. This works with rpdb. :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant