Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to run an IAMQPWorker without an IWorker #39

Open
mathemaphysics opened this issue Jul 5, 2022 · 0 comments
Open

Add option to run an IAMQPWorker without an IWorker #39

mathemaphysics opened this issue Jul 5, 2022 · 0 comments

Comments

@mathemaphysics
Copy link
Owner

Sometimes we don't really care about heartbeats in the main operator() loop in IAMQPWorker and we just want to run and ack() right inside it without a separate thread running the job. As mentioned, the downside is that it while you're running the job in the main operator() loop you can't do anything else, including respond to a heartbeat or process any other messages. Those are blocked. The upside is that ack() isn't called as soon as the job is finished.

Refashion the constructor for IAMQPWorker constructor to run without an external worker if the pointer passed in is nullptr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant