If in one watch cycle a scenario finds multiple results. Will it run each one of them one by one?

For example, a scenario is set to check for updates in a database every hour.

It finds 5 updates after an hour.

Will it then run 5 times (5 execution cycles), 1 for each update even when the limit is set to 1?

Limit: The maximum number of results to be worked during one execution cycle. (which, technically, is one)

Hi @omna,

The limit in your watch module will determine how many results will be processed in one cycle.

The number of cycles dictates the max number of cycles in one execution.

So if you have a limit of 5 and a max cycle of 1, and you have updated 5 records in the polling interval you will have:

1 cycle that returns 5 bundles, each bundle is processed individually in one cycle.

If you have a limit of 1 and a max cycle of 5, and you have updated 5 records during the polling interval you will have:

5 cycles that each return 1 bundle processed during that cycle.

1 Like

Thanks for the answer @loic.wiseflow. How do I update max cycle for a scenario?

You need to open the scenario settings (the gear icon), the field is toward the bottom of the form.

1 Like

Thanks a lot! I’ll check it out.

But what difference does changing the number of cycles vs the Limit make in the result or the number of operations?

1 Like