MATLAB Simulink code: task stops if the execution cycle is set wrong

In the MATLAB Simulink code generation settings, if the execution cycle specified does not match the execution cycle of the corresponding task in AS, the task will automatically stop running. In such cases, is it possible to display a warning or alert during compilation or runtime to notify the user of the incorrect setting?
The MATLAB settings are shown in the figure below:

In AS, the task is placed in task #1 with a cycle of 2 ms.


Upon power-up, the corresponding task stops automatically.


Placing the task in cyclic #2 with a cycle of 10 ms allows it to run normally.

Hello,

i am not sure if community is the correct place to request a change in behaviour of the MATLAB Simulink code generator.
But i assume that they generate the code into the file. You can have a look out for " ST_tmp_suspend()" in the c-Code. This function can be used to stop the Task.

But in gerneral good to know that there is such a behaviour.

Greetings
Michael