Coder Social home page Coder Social logo

Comments (6)

makasim avatar makasim commented on July 30, 2024

Add one more transport specific exception to workaround messenger abstraction.

from messenger-enqueue-transport.

malheirosrafa avatar malheirosrafa commented on July 30, 2024

Can you give me some tips on how can I do it? Eg: if the database timedout, I can't throw that transport specific exception (In my application domain). Sorry if I don't understand what you had said, I'm a beginner developer.

from messenger-enqueue-transport.

makasim avatar makasim commented on July 30, 2024
  • catch your domain exception
  • throw a special exception that instructs an underlying transport not to do anything. Has to be implemented.

Btw enqueue itself does not get in your way. If you do not catch exception it will be redelivered once visibility timeout. If you catch it you can decide what to do: ack, reject or requeue.

from messenger-enqueue-transport.

malheirosrafa avatar malheirosrafa commented on July 30, 2024

That's the problem, it I'm not catching the exception and it is not being redelivered on visibility timeout.

from messenger-enqueue-transport.

makasim avatar makasim commented on July 30, 2024

yeap it's because transport is trying to be smart https://github.com/php-enqueue/messenger-adapter/blob/master/QueueInteropTransport.php#L99

from messenger-enqueue-transport.

Markoshd avatar Markoshd commented on July 30, 2024

hey, i've got the same problem. Did u solve your problem @malheirosrafa ? because I could not really understand the explanation given since for me it was the same Post you've made @makasim, the best
way to solve is to extend the SQS Transport and override the Receive method?
if so, can you post some examples yourself?

from messenger-enqueue-transport.

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.