question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a delay between retries when task crashes

See original GitHub issue

Currently, it seems that there is no delay at all between retries when my task raises an exception. Sometimes bugs occur in the tasks logic and they simply raise an exception. I don’t want to lose any of the tasks, so I went trying to set retries=2**16, but it retries right away.

What would be the recommended way of handling this use-case?

Catching all exceptions inside the tasks and sleep doesn’t make a lot of sense to me as it will be wasting time sleeping instead of processing other tasks…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
cenkalticommented, Feb 22, 2017

New version is available on PyPI: https://pypi.python.org/pypi/Kuyruk/8.2.0

1reaction
cenkalticommented, Mar 6, 2017

@frol I have pushed the tags, sorry about the delay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ansible Retry Examples - Retry a task until condition met
As you can see we can use until, retries and delay keywords with any task and make it retry for no of times...
Read more >
Delay between task retries? - Deadline 6 Beta Discussion
Basically, if a task fails, another task could get a chance to run before the problematic task is retried (and potentially wastes more...
Read more >
Azure Functions error handling and retry guidance
Learn to handle errors and retry events in Azure Functions with links to specific ... DelayInterval, The delay that is used between retries....
Read more >
node.js - How to process delayed complex tasks with retry policy
I have an Express + MongoDB app that is running on AWS Elastic Beanstalk. Sometimes there is a request from a client that...
Read more >
Error handling and automatic retries in AWS Lambda
When you invoke a function, two types of error can occur. Invocation errors occur when the invocation request is rejected before your function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found