question

anon-user avatar image
0 Likes"
anon-user asked Jeff Nordgren answered

How to track group of taskexecuters if they are busy/blocked?

Hi,

in my simulation two taskexecuters are transporting boxes from a queue to a sink. Now I want to track the moment when both are getting an order to transport from the dispatcher, while they are already transporting another box. In other words, I want to track the moment, when both taskexecuters haven't got the time to accept an order from the dispatcher.

I thought to blocked state of the state pie can help, but unfortunately the blocked state is tracking something else.

taskexecuter-blocked-state.fsm

Thanks in advance!

Marc!

taskexecuterblocked
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered
@Marc R2

I guess I'm not exactly sure what you are asking. If task executers are connected to a Dispatcher, as is the case in your model, and a task gets sent to the Dispatcher, it will not send that task to a task executer that is already working on a task. It will queue it up within the Dispatcher itself. And there is no certain way of knowing which task executer will get that task from the Dispatcher, at that time. The Dispatcher will send the next task in it's internal queue to the first available task executer, by default.

So you can't tell, from the task executers themselves, how many tasks they might have queued up in the Dispatcher. You can only know how many tasks are queued up in the Dispatcher (see modification to your model, attached). So again, I'm not clear exactly what information you are trying to get and why. In the attached model, I display the number of queued up tasks in the Dispatcher.

taskexecuter-blocked-state-jn1.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.