Coder Social home page Coder Social logo

Comments (3)

tshedor avatar tshedor commented on July 17, 2024

@SubutaDan you're right, that's a typo. Nice catch.

from brick.

SubutaDan avatar SubutaDan commented on July 17, 2024

@tshedor , I have been puzzling over a related topic. Under some error conditions I would like the request to be retained and retried later. Under other error conditions I would want the request to be removed from the queue. I guess whether the response is retained and later retried or removed from the queue depends on the http response. Is that correct?

How do I tell Brick under what circumstances (for which http responses) to remove a request from the queue and under what circumstances to leave the request on the queue and try again later?

BTW, would you have preferred a new issue in this case or is it ok from your perspective that I extended the discussion the way I have?

Thanks.

-Dan

from brick.

tshedor avatar tshedor commented on July 17, 2024

@SubutaDan I added the trailing sentence to the documentation in the tagged commit above:

OfflineFirstWithRestRepository streamlines the REST integration with an OfflineFirstRepository. A serial queue is included to track REST requests in a separate SQLite database, only removing requests when a response is returned from the host (i.e. the device has lost internet connectivity). See OfflineFirstWithRest#reattemptForStatusCodes.

In short, you can modify the retry status codes by changing the value of reattemptForStatusCodes.

Re: new issue, I'd always prefer a new issue after the original query has been resolved. It helps keep the threads narrow (in case they need to be reviewed in the future), and the problems scoped.

That said, I'm going to close this issue because I believe the text added in de36337 includes the reference to the right property to change, and I'm going to merge that today. If you find that one an insufficient explanation, please feel free to open a fresh issue and we can review solutions there.

from brick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.