Questions tagged [resque-retry]

resque-retry provides retry, delay and exponential backoff support for resque jobs.

19 questions
19
votes
2 answers

How to test retries and failures in resque-retry and Rails 4?

I am trying to write a spec that tests the retry functionality of resque-retry and I can not seem to get the tests to hit the binding.pry's correctly. Is there a way to test this functionality using rspec 3 so I can verify they are functioning as…
Chris Hough
  • 3,389
  • 3
  • 41
  • 80
15
votes
5 answers

Recovering cleanly from Resque::TermException or SIGTERM on Heroku

When we restart or deploy we get a number of Resque jobs in the failed queue with either Resque::TermException (SIGTERM) or Resque::DirtyExit. We're using the new TERM_CHILD=1 RESQUE_TERM_TIMEOUT=10 in our Procfile so our worker line looks…
Brian Armstrong
  • 19,707
  • 17
  • 115
  • 144
5
votes
2 answers

Exception: Microsoft.Azure.Documents.RequestRateTooLargeException while querying from DocumentDB

y query is something like this.ProcessRequestSync(() => this.Client.CreateDocumentQuery(this.DocumentDBCollectionLink).Where(d => d.name.Equals(name) && d.code.Equals(code) && d.Type.Equals(this.documentType) &&…
satish kumar V
  • 1,695
  • 6
  • 33
  • 47
5
votes
1 answer

Where do I put my resque-retry failure backend code?

The resque-retry gem's README discusses changing the failure backend implementation when implementing. MultipleWithRetrySuppression is a multiple failure backend, with retry suppression. Here's an example, using the Redis failure backend: require…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
4
votes
2 answers

Retrofit2+RxJava2, Invalid token, how to update stream when retryWhen() re-subscribe

I have this simple code below that simulates a scenario Im currently trying to accomplish mApiService.api().postSomethingWithAccessToken(request, "some_invalid_access_token") .subscribeOn(Schedulers.io()) .retryWhen(new…
Robert
  • 141
  • 1
  • 13
4
votes
1 answer

How to protect against Redis::TimeoutError: Connection timed out on Heroku

This might seem like a silly question, but I figured someone here on StackOverflow might have some ideas around this. What the hell, right? I'm using Heroku workers with 1X Dynos to run Resque. Sometimes I get this error: Redis::TimeoutError:…
boo-urns
  • 10,136
  • 26
  • 71
  • 107
2
votes
2 answers

Retrofit 2.0 retry count

I have common request and response with AsyncTask.THREAD_POOL_EXECUTOR. I have manually implemented retry count. Now what happening if two web service working simultaneously then its using retry count of each other. I am using retrofit with client…
Dhrupal
  • 1,863
  • 1
  • 23
  • 38
2
votes
2 answers

exception handling - ruby retry loop in python

How to retry a loop in python after getting the exception in ruby u use begin a.each do |s| end rescue sleep 2 retry end I will use sleep time and just use retry the loop after getting excpetion now i want to do this in…
Mounarajan
  • 1,357
  • 5
  • 22
  • 43
2
votes
2 answers

Setting expectation on resque .perform method. Task is enqueued in a Callback

So based on my understanding, I beleive when you do Resque.inline = Rails.env.test? Your resque tasks will run synchronously. I am writing a test on resque task that gets enqueue during an after_commit callback. after_commit…
denniss
  • 17,229
  • 26
  • 92
  • 141
1
vote
1 answer

Connection retry in NSURLSession

I want to implement the connection retry in NSURLSession. Is there any parameter we need to set to achieve this like 'timeoutIntervalForRequest' and NSURLSession takes the responsibility to retry the connection. If there is no any parameter for…
1
vote
0 answers

Stop Retry in UIL android

I am using nostra Android-Universal-Image-Loader in my application. When there is no image on the server with that url, it's retrying too many times. How can I make it stop retrying?
1
vote
0 answers

resque-retry - 'Retry attempt' is displayed as 'n/a'

I am using resque-retry to retry my job. I see the job that needs to be retried on the 'retry' tab of the resque-web interface. However, the 'Retry Attempts' info is always 'n/a'. Is there a reason for this? Thanks in advance!
0
votes
1 answer

How to call the resque-cleaner methods automatically whenever a job fails?

https://github.com/ono/resque-cleaner this documentation explains how to use the methods in console. what if i wanted to call the method to requeue for a specific job as soon as it fails.
Sharath B. Patel
  • 401
  • 1
  • 6
  • 15
0
votes
1 answer

Reset exponential backoff with Resque-retry

I have resque tasks that need to delay after failure with exponential backoff. But sometimes the exponential backoff should be reset -- if the job makes progress towards its ultimate goal, the delay should be reset to very short, but if it's stuck…
Leopd
  • 41,333
  • 31
  • 129
  • 167
0
votes
1 answer

Cleaning Resque failed jobs in Ruby application

I have been using resque in my ruby app with resque-retry plugin. I happened to have a db issue which results into 1M failed jobs. Now these failed jobs are not coming into the fialover queue immediately but taking some sweet time like 10k jobs per…
AtaurRehman Asad
  • 173
  • 1
  • 1
  • 8
1
2