Lumyna
9
Well guys, thank you both for the tips and comments, I really appreciate it.
The approach apparently works when there is no external API involved. When the creation of new things depends on obtaining data from another external API, apparently there must be some delay or something that is intrinsic to this communication, which probably means that the list is not executed in the correct order, or maybe it is, but the last item processed may not be the last item flagged in the parameter all the time. So, in some cases the verification fails.
Anyways, thanks for the help.