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

  • SEARCH
  • Home
  • 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 8951409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:39:24+00:00 2026-06-15T13:39:24+00:00

I’m using celery with django. I’m having to provide an option for the user

  • 0

I’m using celery with django. I’m having to provide an option for the user to inspect a failed task, make modifications to the failed task data if necessary and submit it again.
I have seen this thread –
Celery Storing unrecoverable task failures for later resubmission.
So I understand that celery does not store the original args and kwargs of the task and we need to take care of that. I’m fine with doing that.
But if I have a main task “MainTask1” that submits a chain “SubTask1 | SubTask2 | SubTask3” and if SubTask2 fails, then I see that SubTask3 wont be executed till SubTask2 succeeds. But if SubTask2 fails after max retries, then SubTask3 is never submitted.

My questions are –

  1. When SubTask2 has failed, I can persist the args and kwargs of that. But how do I get information of the remaining tasks in the chain?

  2. What exactly is stored in the columns ‘result’ and ‘meta’ of the table celery_taskmeta?

  3. When is the table celery_tasksetmeta populated?

Thanks,

  • 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-15T13:39:25+00:00Added an answer on June 15, 2026 at 1:39 pm
    1. You could use results for that (e.g. AsyncResult(id).ready, see http://docs.celeryproject.org/en/latest/reference/celery.result.html), but this can not be done reliably with the amqp backend since only one process can retrieve the result.

    2. The names used in the backend APi is inconsistent and outdated.
      This is because the terminology evolved quite a bit over time and the backends have
      been pretty much backwards compatible since celery 0.1.
      At first the tasks only stored data when it succeeded or failed. This used the fields status and result. Eventually I realized it was easy to extend this into supporting arbitrary states that updates as the task progresses, and this was simply implemented over what already existed.

      The result field contains the return value of the task when the task succeeded, or the exception raised in the task when it fails. Custom states can store arbitrary data in this field, so in newer terms a task state can have information attached to it and this is where that is stored.

      The meta field was added later because I was tired of adding new fields all the time (and forcing users to migrate the schema), it’s used for new fields that does not have to be indexed and currently it only holds the children attribute, which is a list of subtask ids started by the task

      Hopefully it will be possible to clean this up some day. Most of the other ‘growing-pains’ has already been refactored away ages ago, but the result backend remains.

    3. GroupResult.save (previously TaskSetResult) is used to store a group result
      for later retrieval, so you can get the list of task ids in a group just by keeping the group id. This feature is only used by the Redis result backend to implement chords at this point, this will change in the future, because it’s not very efficient for groups with many tasks. The save option was implemented by user request, but I think it was a bad choice on my part to include it, and it’d be better for the user to do it (like the storing of task arguments/kwargs you mention).

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.