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 8206787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:47:21+00:00 2026-06-07T08:47:21+00:00

Building on this question: Django Celery Time Limit Exceeded? I have some tasks that

  • 0

Building on this question:

Django Celery Time Limit Exceeded?

I have some tasks that may run for sometime. However, most tasks should not take more then a few seconds. I don’t want to set the global timeout to account for those long running tasks. Rather, I would like to have a global hard timelimit that is short, and manually adjust the tasks that I need to have a longer timeout.

When decorating the task with @task I did @task(timeout=None) and yet, that task still hit a timeout of 300 seconds. I called the task with task_function.delay(args).

Is there a way to call a task and customize it’s timeout?

  • 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-07T08:47:24+00:00Added an answer on June 7, 2026 at 8:47 am

    This issue addresses the case when you can call a task with custom timeouts. It is implemented in issue802 branch but isn’t in master yet. You can merge it with master and use the desired functionality.

    With this patch, you can pass timeouts when calling tasks.

    tasks.add.apply_async(args=[1,2], soft_timeout=2, timeout=5)

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

Sidebar

Related Questions

I have an application that uses the .NET framework 3.5. I am building this
This question is (I think) about object/row level permissions in Django. We are building
I am building a web application (in Django, though this isn't a Django-specific question).
Building on this question , now I have another problem. Given this, shipments =
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
Sorry for such a trivial question, but I'd feel silly building this if it
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
I have this query: criteria = session.CreateCriteria(typeof (Building)) .CreateAlias(Estate, estate) .SetProjection(Projections.ProjectionList() .Add(Property.ForName(Name), BuildingName) .Add(Property.ForName(estate.Name),
I'm new to python and to django so this question will probably be easy
I'm building a system using django, Sphinx and MySQL that's very quickly becoming quite

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.