question

Allison H2 avatar image
0 Likes"
Allison H2 asked tannerp commented

release items from queue at end of every hour

I am attempting to release items that are accummulated throughout an hour (regardless of the amount of items) (want to completely empyt the queue) only at the end of every hour.

Is there a simple way to do this, or will it require code?

FlexSim 19.1.2
Choose One
release
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

tannerp avatar image
0 Likes"
tannerp answered

Hi @Allison H2,

Here's a simple model that should accomplish what you've outlined in your question. There is no coding involved, but instead I used Process Flow. Every 3600 seconds, there is a token released that opens the output of Queue1 and then closes it after a delay of 0.1 seconds (long enough for items to transfer from queue). Let me know if you have any questions about the model. It's fairly straightforward, but can be applied many different ways.

Model: batch-every-hour.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.