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

Regression on fetchAndLock long poll (asyncResponseTimeout has no effect) #433

Closed
datakurre opened this issue Oct 1, 2022 · 3 comments
Closed

Comments

@datakurre
Copy link

datakurre commented Oct 1, 2022

At some point, asyncResponseTimeout has stopped having effect. It was previously fixed for #353

Now, with micronaut 3.6.1 and micronaut-camunda-bpm-feature 2.9.0, it is no longer possible to long poll external tasks:

$ date --iso-8601=ns && curl -X POST http://localhost:8080/engine-rest/external-task/fetchAndLock -H "Content-Type: application/json" -d'{"maxTasks": 1, "workerId": "aWorkerId", "asyncResponseTimeout": 2000, "topics": [{"topicName": "myTopic", "lockDuration": 3000}]}' && printf "\n" && date --iso-8601=ns
2022-10-01T15:23:39,356950496+03:00
[]
2022-10-01T15:23:39,384599763+03:00

demo.zip

@datakurre
Copy link
Author

Closed as invalid.

I had already forgotten that this feature had issues when run with maven with mn:run.

@tobiasschaefer
Copy link
Collaborator

Hi @datakurre ,

thanks for reporting and closing this issue.

It shows that you're still using the integration project 😀

@datakurre
Copy link
Author

Thanks for maintaining!

That said, I might re-open this in the future, once I have more time to investigate.

The behavior that I'm seeing (on 2.8.1) and right now: It does keep worker waiting for asyncResponseTimeout, but also returns the locked tasks only after asyncResponseTimeout, when it should return them as soon as they have been released. 😅

I need to confirm this with a minimal application and different version later next week...

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

2 participants