Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:25:34+00:00 2026-06-12T09:25:34+00:00

I need to debug Celery task from the Eclipse debugger. I’m using Eclipse, PyDev

  • 0

I need to debug Celery task from the Eclipse debugger.
I’m using Eclipse, PyDev and Django.

First, I open my project in Eclipse and put a breakpoint at the beginning of the task function.

Then, I’m starting the Celery workers from Eclipse by Right Clicking on manage.py from the PyDev Package Explorer and choosing “Debug As->Python Run” and specifying “celeryd -l info” as the argument. This starts MainThread, Mediator and three more threads visible from the Eclipse debugger.

After that I return back to the PyDev view and start the main application by Right Click on the project and choosing Run As/PyDev:Django

My issues is that once the task is submitted by the mytask.delay() it doesn’t stop on the breakpoint. I put some traces withing the tasks code so I can see that it was executed in one of the worker threads.

So, how to make the Eclipse debugger to stop on the breakpoint placed withing the task when it executed in the Celery workers thread?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:25:34+00:00Added an answer on June 12, 2026 at 9:25 am

    You should consider the option to run the celery task in the same thread as the main process (normally it runs on a separate process), this will make the debug much easier.

    You can tell celery to run the task in sync by adding this setting to your settings.py module:

    CELERY_TASK_ALWAYS_EAGER  = True
    # use this if you are on older versions of celery
    # CELERY_ALWAYS_EAGER = True 
    

    Note: this is only meant to be in use for debugging or development stages!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have android application that I need to debug using eclipse. When I right
I need in my django project run long tasks. Desided to use celery with
I need to debug a class library project that is provided to the main
I need to debug some binary crash using IDA Pro. What is the command-line
I have a java class and I need to debug it (put breakpoints and
I'm not a perl programmer but need to debug an error. I'm using the
I need to debug a project which starts multiple processes at the very beginning,
How do I debug a native code project from inside a managed code project?
I often need to debug by preventing some definition from evaluating and checking intermediate
when playing with my project i need to debug it, and i like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.