Coder Social home page Coder Social logo

Comments (4)

steve-chavez avatar steve-chavez commented on August 27, 2024 1

Maybe the correct behavior in this case is to warn instead of crashing
I'm not sure how to go about warning the user that the DELETEs failed. Can you clarify?

Ah, my ideas where not clear when I mentioned that(they were not directly related to DELETEs).

But I was thinking that we could have a guc like pg_net.is_worker_on=true and when this is false(worker down) calling all the functions(like net.http_get or net.http_post) would fail. That would prevent having a lot of http requests on the queue.

from pg_net.

steve-chavez avatar steve-chavez commented on August 27, 2024 1

Another simple way is to just remove the PKs of the tables. This should also help with stability in the meantime as inserts will be faster.

from pg_net.

soedirgo avatar soedirgo commented on August 27, 2024

One small win: rename http_request_queue to _http_request_queue.

This is a private API, so when a user interacts with it, all bets are off. As far as I'm concerned, this is working as intended.

So the improvement to be gained here is on UX of user errors.

Maybe the correct behavior in this case is to warn instead of crashing

I'm not sure how to go about warning the user that the DELETEs failed. Can you clarify?

from pg_net.

steve-chavez avatar steve-chavez commented on August 27, 2024

One small win: rename http_request_queue to _http_request_queue.

I agree. Also, right now the worker crashes/restarts forever when there's a TTL failure - it should only die once and pg_net functions should refuse to work when the worker is down.

from pg_net.

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.