-
Notifications
You must be signed in to change notification settings - Fork 37
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
Zeebe worker stops processing after instances processed = max_task_count #201
Comments
I've tested a fix for this issue in The wait time could also be an argument of Hi @JonatanMartens, what do you think? Would you like me to submit a pull request? async def poll(self):
while self.should_poll():
while self.calculate_max_jobs_to_activate() > 0:
await self.poll_once()
await asyncio.sleep(5)
...
def should_poll(self) -> bool:
return not self.stop_event.is_set() \
and (self.zeebe_adapter.connected or self.zeebe_adapter.retrying_connection) \
and self.calculate_max_jobs_to_activate() > 0 |
Hey @Andy-JB, I can't seem to replicate the issue on my machine, can you provide how you use the worker? It would be really helpful if you could submit a pr, if you can also add a test so that we know it was fixed. Thank you for opening this issue! |
We are testing version 3.0.0rc3 and we also found this bug. It can be simply reproduced by following scenario:
|
Hello, basically whenever |
"Zeebe worker stops processing after instances processed = max_task_count" camunda-community-hub#201
We encountered the same issue in our project when traffic became 100 processes/second (incident), when we have max task count 32 Also I like more the "tmp fix" mentioned here, then just waiting |
"Zeebe worker stops processing after instances processed = max_task_count" camunda-community-hub#201
This issue is fixed for us in |
Describe the bug
When the number of instances waiting in Zeebe is greater than
max_task_count
, starting a Zeebe worker will processmax_task_count
instances before ceasing to process.To Reproduce
Steps to reproduce the behavior:
max_task_count
max_task_count
number of instances will be processed by Zeebe worker.Expected behavior
Zeebe worker continues processing all instances in Zeebe.
Screenshots
Before starting Zeebe worker with
max_task_count=32
:After starting Zeebe worker:
Desktop (please complete the following information):
Extra info
Tested using the worker example from the docs and zeebe-docker-compose
This bug also occurs on Kubernetes v1.11.0
The text was updated successfully, but these errors were encountered: