Skip to content

Debugging celery task #6

@andyneff

Description

@andyneff

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. :-\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions