RMS Tasks - Acceptable Return Codes

Hello just wanted to know if you have any updates regarding this issue?

Acceptable Return Codes

Thanks

EDIT:
To add to this, I updated to latest firmware (RUT9M_R_00.07.06.1 ) and tried some tasks again.

What seems to have changed is if I simply do this in the task:

exit 1
echo "should not be printed"

then it behaves correctly, No message is seen in the log, the task is marked as failed and Task 2 in the same Task Group is not executed.


But if I do this:

echo "this must be printed"
exit 1
echo "should not be printed"

then it behaves incorrectly; I see only this must be printed in the output but the Task is marked as successful and subsequent tasks in the Task Group are executed.


EDIT 2

It seems to be that the failure needs to happen first. This fails as it should

set -e
cp non_existing_source non_existing_destination
echo "should not print"

and this fails as it should

exit 1

But this is marked as successful (“should not print” does not print):

set -e
echo "should print"
echo
cp non_existing_source non_existing_destination
echo "should not print"

Hello,

Apologies for the delayed response.

The RnD team did not include the fix in version 7.6 due to higher priority tasks. However, the fix should be included in future firmware releases.

Kind Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.